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 (person-name, manager-name)
Step by Step Solution
3.45 Rating (168 Votes )
There are 3 Steps involved in it
a IIpersonname companyname First Bank Corporation works b IIpersonname city employee 0 companyname F... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
16-CS-DB (119).docx
120 KBs Word File
