Assignment 2
Assignment 2
Assignment
Question 1:
You are tasked with analyzing the "Coffee_Sales_Data" table, which contains
information about each transaction. Each row in the table represents a sale and
includes details such as the product Category, Transaction Quantity, and Unit
Price.
Write an SQL query to generate a report that provides insights into the sales
performance of each product Category. The report should include the following
metrics for each product Category:
1. The sum of the total Sales generated by each product Category using Transaction
Quantity and Unit Price.
2. The average profit per unit for each product Category.
3. The highest quantity of the product sold.
4. The lowest sales_price per unit for each product Category. If a "sales_price"
column does not exist, create it by multiplying Transaction Quantity by Unit Price.
Question 2:
Write an SQL query to answer the following questions: