Question: For the schema, (shown below, with primary keys indicated), write RA query for each of the following. (State any reasonable assumptions if necessary.) You may

For the schema, (shown below, with primary keys indicated), write RA query for each of the following. (State any reasonable assumptions if necessary.) You may write a query in several steps

Employee (person_name, street, city)

Works (person_name, company_name, salary)

Company (company_name, city)

(a) Find the names of all employees in this database who do NOT live in the same city as the company for which they work. [Note: You should understand what the same city as the company for which they work means.]

(b) Find the total number of employees in the company which has the minimum number of employees.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!