sql-statements-answered

1.Download the Northwind database attached below.

2.Download the second database and rename it to (Hashim Jamalallail)

Then answer the following questions:

  1. What employees have last names that begin with “D”?
  2. What customers have marketing in their title?
  3. How many territories are there?
  4. How many territories are there in each region?
  5. What suppliers are from the USA?
  6. What’s the average unit price of products?
  7. What’s the average unit price for and count of products that are out of stock? (stock = 0, not counting things ordered.)
  8. Which employees have ‘BA’s?
  9. What are the top 10 orders according to quantity?
  10. How many regions do each employee work?

11. What were the top 10 orders according to final cost? (quantity x unit cost)
12. What was the average time from order to shipping for each employee? (shipping Date – order date)

*When your done send the second file

*Make sure to rename it to (Hashim Jamalallail)

FILES: