Skip to content

Ktalesha01/Sales-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

🛍️ Sales Management System (SQL Project)

This project simulates a simple retail sales management system using SQL. It focuses on database design, data analysis, and report generation through practical SQL queries involving customers, products, and orders.


📚 Project Overview

This project demonstrates the use of SQL to model and analyze business transactions in a sales environment. It includes a normalized schema with foreign key relationships and a variety of real-world query cases, suitable for interviews and SQL practice.


🗃️ Database Schema

1. Customers

Column Name Data Type Description
CustomerID INT (PK) Unique identifier for a customer
Name VARCHAR Customer's name
City VARCHAR City where the customer lives
JoinDate DATE When the customer joined

2. Products

Column Name Data Type Description
ProductID INT (PK) Unique product ID
Name VARCHAR Product name
Category VARCHAR Product category
Price DECIMAL Price per unit

3. Orders

Column Name Data Type Description
OrderID INT (PK) Unique order ID
CustomerID INT (FK) Linked customer ID
ProductID INT (FK) Linked product ID
OrderDate DATE Date of the order
Quantity INT Quantity of product ordered

🧠 Features / SQL Queries

The following queries are included:

  1. List all customers from Mumbai.
  2. Find total number of orders placed.
  3. Calculate total quantity ordered per product.
  4. Calculate total revenue generated per product.
  5. Find top 3 customers by total spending.
  6. Show orders placed in the last 7 days.
  7. Calculate average order value.
  8. Revenue generated by each product category.
  9. Find the city with the most customers.
  10. Total revenue from each customer.
  11. List customers who placed more than one order.
  12. Retrieve the highest-priced product.
  13. List customers and their first order date.
  14. Identify customers who haven’t placed any orders.
  15. Monthly revenue report.
  16. Most popular product by quantity sold.
  17. Total order count and quantity per customer.

📦 Sample Use Cases

  • Analyze customer purchasing behavior
  • Generate sales reports for specific timeframes
  • Identify high-value customers
  • Track product popularity and category performance

🛠️ Tools Used

  • Oracle SQL / MySQL / PostgreSQL
  • SQL Developer or any SQL IDE

🚀 How to Use

  1. Clone or download the project.
  2. Import and execute Sales Management System.sql in your SQL environment.
  3. Run and customize the included SQL queries based on your needs.

📈 Potential Extensions

  • Add payment status or delivery tracking
  • Build a reporting dashboard using Power BI or Tableau
  • Integrate with frontend or ERP systems

📄 License

This project is open-source and available for educational and portfolio use. Contributions are welcome!


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors