Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Schema: Lives(person_name, street, city) Works(person_name, company_name, salary) Located_in(company_name, city) Manages(person_name, manager_name) (a) Find the name of all employees who work for BofA (b) Find the
Schema: Lives(person_name, street, city) Works(person_name, company_name, salary) Located_in(company_name, city) Manages(person_name, manager_name) (a) Find the name of all employees who work for BofA (b) Find the name and city of all employees who work for BofA (c) Find the name, street, and city of all employees who work for BofA and earn more than $40,000. (d) Find all employees who live in the same city as the company they work for. (e) Find all employees who live in the same city and on the same street as their manager. (f) Find all employees who do not work for BofA (g) Find all employees who earn more than every employee of Citicorp. (h) Assume the companies may be located in several cities. Find all companies located in every city in which BofA is located.
Schema:
Lives(person_name, street, city) Works(person_name, company_name, salary) Located_in(company_name, city) Manages(person_name, manager_name)
(a) Find the name of all employees who work for BofA
(b) Find the name and city of all employees who work for BofA
(c) Find the name, street, and city of all employees who work for BofA and earn more than $40,000.
(d) Find all employees who live in the same city as the company they work for.
(e) Find all employees who live in the same city and on the same street as their manager. (f) Find all employees who do not work for BofA
(g) Find all employees who earn more than every employee of Citicorp.
(h) Assume the companies may be located in several cities. Find all companies located in every city in which BofA is located.
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