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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started