Question: Consider the employee database of Figure 2.17. Give an expression in the relational algebra to express each of the following queries: a. Find the ID

Consider the employee database of Figure 2.17. Give an expression in the relational algebra to express each of the following queries:

a. Find the ID and name of each employee who works for “BigBank”.
b. Find the ID, name, and city of residence of each employee who works for “BigBank”.
c. Find the ID, name, street address, and city of residence of each employee who works for “BigBank” and earns more than $10000.

d. Find the ID and name of each employee in this database who lives in the same city as the company for which she or he works.

Figure 2.17

employee (person_name, street, city) works (person_name, company name, salary) company (company_name, city)

employee (person_name, street, city) works (person_name, company name, salary) company (company_name, city)

Step by Step Solution

3.32 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a b c d I... 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

Students Have Also Explored These Related Database System Concepts Questions!