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
Get step-by-step solutions from verified subject matter experts
