Skip to content

TMLutere/sql-sales-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

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.

About

SQL data analysis project using SELECT, JOIN, GROUP BY, and ORDER BY queries to analyze sales performance, revenue trends, and customer purchasing behavior.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors