Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1002 Bytes

File metadata and controls

42 lines (29 loc) · 1002 Bytes

SQL Sales Analysis

Business Problem

Companies store large amounts of transaction data in databases. The goal of this project is to use SQL to extract useful information such as revenue trends, top-selling products, and profitable categories to support decision-making.

Skills Demonstrated

  • SELECT statements
  • WHERE filtering
  • GROUP BY aggregation
  • ORDER BY sorting
  • Aggregate functions (SUM, COUNT, AVG)
  • Business reporting queries

Example Queries

Total Sales Revenue

SELECT SUM(Sales) AS Total_Revenue FROM orders;

Sales by Category

SELECT Category, SUM(Sales) AS Revenue FROM orders GROUP BY Category ORDER BY Revenue DESC;

Monthly Sales Trend

SELECT YEAR(Order_Date) AS Year, MONTH(Order_Date) AS Month, SUM(Sales) AS Monthly_Revenue FROM orders GROUP BY YEAR(Order_Date), MONTH(Order_Date) ORDER BY Year, Month;

Outcome

This project demonstrates the ability to query business databases and generate reports required by management and stakeholders.