Question: SQL Subqueries You must use subqueries on this set of problems. 1. List each city, by name, that has received shipments from customers having less
SQL Subqueries
You must use subqueries on this set of problems.
1. List each city, by name, that has received shipments from customers having less than $1.5 million in annual revenue. Order these alphabetically.
2. List the names of drivers who have delivered shipments weighing over 1100 pounds.
3. List the name and annual revenue of customers who have sent shipments weighing under 100 pounds.
4. List the name and annual revenue of customers whose shipments have been delivered by truck driver Ty Mosley.
5. Which drivers (ID and name) have not yet delivered anything? 6. Which customers (ID and name) have annual revenue greater than the average revenue of all customers (including themselves)?
SQL Group By Queries
1. List the total annual revenue for customers by their customer type (CustType).
2. List the average monthly revenue for customers by their customer type (CustType).
3. List the average shipment weight by truckid. Exclude average shipment weights less than 600 pounds.
4. List the average shipment weight by customerid.

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
