MySQL Assignment
MySQL Assignment
Objective:
The purpose of this assignment is to practice using SQL commands to filter, sort, and aggregate
data efficiently in Microsoft SQL Server. Complete the following tasks using a sample database.
Database Schema:
Tasks:
Write a SQL query to retrieve all records from the Sales table where:
• If two sales have the same date, sort them by Price in ascending order.
• Retrieve records where Category is either 'Electronics' OR 'Furniture' but NOT 'Chair'.
• The sale price should be greater than 300 AND quantity should be greater than 1.
Submission Guidelines:
• Modify the GROUP BY query to include total revenue for each product (Quantity * Price)
and filter products with revenue greater than 1000.