Question: Using the northwind database, write SQL statements to: Get get product code for all products in the canned meat category For each product ID, determine
Using the northwind database, write SQL statements to:
- Get get product code for all products in the canned meat category
- For each product ID, determine the total number of orders for that product (i.e., product 1 has 3 orders, product 7 has 14 orders, etc.)
- Determine the number of customers from Oregon
- List all the cities where employees live (each city should be listed once, even if multiple employees live there)
- For each order, list the order id and the number of days between when it was ordered and when it shipped
- Create a new customer (you may make up the appropriate details)
- Update the database after Robert Zare was promoted to Sales Manager
- Get the date and id of all orders placed during April 2006.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
