Question
Answer the below with an RA query using the following databases below employee (person_name, street, city) works (person_name, company_name, salary) company (company_name, city) H) Find
Answer the below with an RA query using the following databases below
employee (person_name, street, city)
works (person_name, company_name, salary)
company (company_name, city)
H) Find person names, streets and cities of employees who work for two different companies
I) For each company, find person name, salary, street and city for the highest paid employee of that company
J) For each company, find total number of employees and total number of cities their employees reside
K) Find name and city of the company which has highest-paid employee among employees from all companies, along with the name and salary of this employee
L) Find name and city of any company which has employees living in Lincoln and Omaha. [Meaning of the query: For each of these companies, it has some employees live in Lincoln, and some others live in Omaha. Note no employee can live in to different cities
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