In-Class SQL Assignment


Using the Northwinds database....

  1. Show all products that have fewer units in stock than the reorder level specifies.

  2. What are the last names of all employees born before Jan 1, 1960?

  3. List the supplier name and city for all suppliers based in the United States.

  4. List the supplier name and URL for all suppliers that have a home page.

  5. Using one of the special operators, list the supplier name and country for all suppliers based in an English-speaking county.

  6. Using one of the special operators, list the product name and price for all products that sell for as little as $10 and as much as $20.

  7. List the company name for all customers whose company name falls between 'L' and 'O', inclusive.

  8. List the last name and title for all employees who work in sales.

  9. Get supplier names and order ID for all orders.

  10. Get supplier name, order ID and product name for all orders supplied by "Tokyo Traders."

  11. Get supplier name, order ID, product name, and dollar value of the amount of that product ordered for each order supplied by "Tokyo Traders."

  12. Get the shipper name and supplier name for all orders shipped by Speedy Express.

  13. List the shipper name and the number of orders shipped by each shipper.

  14. Display the quantity ordered of each product.

  15. Write a query that shows how many orders are associated with each customer ID. Note that the customerID field is replaced with the Customer’s name. Why is that?

  16. Total inventory (dollar value) on hand by category.

  17. Show the company names of all customers that have ordered the product "Aniseed Syrup."

  18. Show the company names of all suppliers who have discontinued products.

  19. Show the total dollar value of all the orders we have for each customer (one dollar amount for each customer). Order the list in descending order.