write the SQL queries, and screenshot the results of the following 1. List customers (in alphabetical
Question:
write the SQL queries, and screenshot the results of the following
1. List customers (in alphabetical order) and their invoice numbers.
2. How many invoices does each customer have? List the output in increasing order of invoices (ignore order of cus_l
3. List the distinct products bought by each customer (in alphabetical order)
4. Generate a listing of all purchases made by the customers:
5. Summarize the value of products currently in inventory:
6. Write SQL query to duplicate the results outlined below:
7. Compute the average purchase amount per product made by each customer:
8. List customers who have purchased hammers or saws *hint: make sure to not have repeating CUS_CODEs
9. List the difference between product price and average product price. *Notice that AVGPRICE has the same value for all rows. Subqueries are often used when you need to return a single value (aggregation).
10. Find the product that has sold the most quantity
the following screenshots include the tables and their content from SALESCO
and this is the schema:
Business Statistics For Contemporary Decision Making
ISBN: 978-1118749647
8th edition
Authors: Black Ken