Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Practice exercise 6.2 from the textbook Given following schemas EMPLOYEE(PERSONNAME, STREET, CITY), WORKS(PERSONNAME, COMPANYNAME, SALARY), COMPANY(COMPANYNAME, CITY), and MANAGES(PERSONNAME, MANAGERNAME), write relational algebra expressions

image text in transcribed

3. Practice exercise 6.2 from the textbook Given following schemas EMPLOYEE(PERSONNAME, STREET, CITY), WORKS(PERSONNAME, COMPANYNAME, SALARY), COMPANY(COMPANYNAME, CITY), and MANAGES(PERSONNAME, MANAGERNAME), write relational algebra expressions for the following queries. (6 points) Find the names of all employees who live in the same city and on the same street as do their managers a) b) Find the names of all employees in this database who do not work for First Bank Corporation (assuming that all people work for exactly one company and people are allowed to appear in the database (e.g. in EMPLOYEE) but not appear in WORKS.) c) Find the names of all employees who earn more than every employee of "Small Bank Corporation

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions

Question

what is the most common cause of preterm birth in twin pregnancies?

Answered: 1 week ago

Question

Which diagnostic test is most commonly used to confirm PROM?

Answered: 1 week ago

Question

What is the hallmark clinical feature of a molar pregnancy?

Answered: 1 week ago