0% found this document useful (0 votes)
4 views

Assignment 2

The document outlines two assignment questions related to analyzing a 'Coffee_Sales_Data' table using SQL queries. The first question requires generating a report on sales performance metrics for each product category, while the second question focuses on identifying store locations with the highest sales, total sales for specific products, the month with the highest sales, and the top and least selling products. The queries involve calculations such as total sales, average profit, and sales quantities.

Uploaded by

efavourable
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Assignment 2

The document outlines two assignment questions related to analyzing a 'Coffee_Sales_Data' table using SQL queries. The first question requires generating a report on sales performance metrics for each product category, while the second question focuses on identifying store locations with the highest sales, total sales for specific products, the month with the highest sales, and the top and least selling products. The queries involve calculations such as total sales, average profit, and sales quantities.

Uploaded by

efavourable
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

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:

1. Which Store Location has the highest number of Quantity Sold?


2. What is the Total Sales made in each store location for Bakery, Drinking
Chocolate, and Tea?
3. Which month has the highest Sales?
4. What are the top 5 and least 5 selling product.

You might also like