Lab 5
Lab 5
constraints:
1. What are the names and populations of cities that have received shipments weighing over 100
pounds?
2. Who are the drivers who have delivered shipments for customers with annual revenue over
$20 million to cities with populations over 1 million?
3. List the cities that have received shipments from customers having over $15 million in annual
revenue.
4. List the names of drivers who have delivered shipments weighing over 100 pounds.
5. List the name and annual revenue of customers who have sent shipments weighing over 100
pounds.
6. List customers who had shipments delivered by every truck.
7. List cities that have received shipments from every customer.
8. List drivers who have delivered shipments to every city.
9. Customers with annual revenue over $10 million which have sent packages under 1 pound to
cities with population less than 10,000.
10. Create views for each of the following:
a. Customers with annual revenue under $1 million.
b. Customers with annual revenue between $1 million and $5 million.
c. Customers with annual revenue over $5 million.
11. Use these views to answer the following queries:
a. Which drivers have taken shipments to Delhi for customers with revenue over $5 million?
b. What are the populations of cities which have received shipments from customers with
revenue between $1 million and $5 million?