A complete SQL project developed using Microsoft SQL Server to manage customers, products, suppliers, employees, orders, and sales operations.
This project demonstrates intermediate SQL concepts through practical business scenarios including joins, aggregate functions, views, set operators, and sales reporting.
- Manage Categories
- Manage Suppliers
- Manage Customers
- Manage Employees
- Manage Products
- Manage Orders
- Track Order Details
- Generate Sales Reports
- Create SQL Views
- Perform Business Analysis Using SQL Queries
| Table Name | Description |
|---|---|
| Categories | Stores product categories. |
| Suppliers | Stores supplier information. |
| Customers | Stores customer details. |
| Employees | Stores employee information. |
| Shippers | Stores shipping company details. |
| Products | Stores product information. |
| Orders | Stores customer orders. |
| OrderDetails | Stores ordered product details. |
- SELECT
- WHERE
- DISTINCT
- TOP
- ORDER BY
- LIKE
- IN
- NOT IN
- BETWEEN
- IS NULL
- IS NOT NULL
- INNER JOIN
- LEFT JOIN
- RIGHT JOIN
- UNION
- UNION ALL
- INTERSECT
- EXCEPT
- CONCAT
- UPPER
- LOWER
- LEN
- TRIM
- REPLACE
- GETDATE()
- YEAR()
- MONTH()
- DAY()
- DATEADD()
- DATEDIFF()
- ISNULL()
- COALESCE()
- CASE
- COUNT()
- SUM()
- AVG()
- MIN()
- MAX()
- GROUP BY
- HAVING
- Views
Sales-Management-System-SQL
│
├── Database
├── SQL Scripts
│ ├── 01_Create_Database.sql
│ ├── 02_Create_Tables.sql
│ ├── 03_Insert_Data.sql
│ ├── 04_Basic_SELECT.sql
│ ├── 05_JOINS.sql
│ ├── 06_SET_OPERATORS.sql
│ ├── 07_FUNCTIONS.sql
│ ├── 08_GROUPBY_HAVING.sql
│ ├── 09_VIEWS.sql
│ └── 10_Final_Business_Queries.sql
│
├── Documentation
├── README Images
├── README.md
└── LICENSE
- Designed a normalized relational database with 8 interconnected tables.
- Implemented Primary Key and Foreign Key relationships to maintain data integrity.
- Developed 50+ business-oriented SQL queries for real-world sales reporting.
- Performed customer, product, supplier, and order analysis using SQL.
- Created reusable SQL Views to simplify reporting queries.
- Applied aggregate functions, joins, set operators, CASE expressions, and filtering techniques.
- Organized the project with professional documentation, screenshots, and GitHub-ready structure.
- Microsoft SQL Server
- SQL Server Management Studio (SSMS)
- Visual Studio Code
- Markdown
- Git & GitHub
-
Clone this repository.
-
Open SQL Server Management Studio (SSMS).
-
Execute the SQL scripts in the following order:
- 01_Create_Database.sql
- 02_Create_Tables.sql
- 03_Insert_Data.sql
- 04_Basic_SELECT.sql
- 05_JOINS.sql
- 06_SET_OPERATORS.sql
- 07_FUNCTIONS.sql
- 08_GROUPBY_HAVING.sql
- 09_VIEWS.sql
- 10_Final_Business_Queries.sql
-
Explore the generated views and business reports.
- Stored Procedures
- Triggers
- Common Table Expressions (CTEs)
- Window Functions
- Indexes
- Transactions
- Performance Optimization
Pushkar Negi
Aspiring Data Engineer | SQL Enthusiast
If you found this project helpful, please consider giving it a ⭐ on GitHub.



















