Question: Consider the relational database of Figure, where the primary keys are underlined. Give an expression in the relational algebra to express each of the following

Consider the relational database of Figure, where the primary keys are underlined. Give an expression in the relational algebra to express each of the following queries:

a. Find the names of all employees who work for First Bank Corporation.

b. Find the names and cities of residence of all employees who work for First Bank Corporation.

c. Find the names, street address, and cities of residence of all employees who work for First Bank Corporation and earn more than $10,000 per annum.

d. Find the names of all employees in this database who live in the same city as the company for which they work.

e. Find the names of all employees who live in the same city and on the same street as do their managers.

f. Find the names of all employees in this database who do not work for First Bank Corporation.

g. Find the names of all employees who earn more than every employee of Small Bank Corporation.

h. Assume the companies may be located in several cities. Find all companies located in every city in which Small Bank Corporation islocated.

employee (person-name, street, city) works (person-nanie, company-name, salary) my (compa-, ity) manages

employee (person-name, street, city) works (person-nanie, company-name, salary) my (compa-, ity) manages (person-name, manager-name)

Step by Step Solution

3.45 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a IIpersonname companyname First Bank Corporation works b IIpersonname city employee 0 companyname F... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

16-CS-DB (119).docx

120 KBs Word File

Students Have Also Explored These Related Databases Questions!