Homework2
Coding and Database Managment
SQL - Homework 2
The following queries use the classicmodels schema.
- How many unique products are in the table products?
- What is the total number of products and the total quantity of all products?
- What are the minimum and maximum prices of products?
- Provide the number of products by product line (hint: use group by)
- Report the sales representative for each customer.
- Report the total payments by date.
- Report the products that have not been sold.
- List the amount paid by each customer.
- How many orders have been placed by Herkku Gifts?
- Who are the employees in Boston?
- Report those payments greater than $100,000. Group the report by customer name. Sort the report so the customer who made the highest payment appears first.
© 2025. All Rights Reserved.
Enabled by Dr. Marcin Bartosiak