Consider the employee database of Figure ??, where the primary keys are underlined. Give an expression in SQL for each of the following queries. a. Find the names and cities of residence of all employees who work for First Bank Corporation. b. Find the names, street addresses, and cities of residence of all employees who work for First Bank Corporation and earn more than $10,000. c. Find all employees in the database who do not work for First Bank Corporation.
Consider the employee
underlined. Give an expression in SQL for each of the following queries.
a. Find the names and cities of residence of all employees who work
for First Bank Corporation.
b. Find the names, street addresses, and cities of residence of all employees
who work for First Bank Corporation and earn more than
$10,000.
c. Find all employees in the database who do not work for First Bank
Corporation.
d. Find all employees in the database who earn more than each employee
of Small Bank Corporation.
e. Assume that the companies may be located in several cities. Find all
companies located in every city in which Small Bank Corporation is
located.
f. Find the company that has the most employees.
g. Find those companies whose employees earn a higher salary, on
average, than the average salary at First Bank Corporation.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps