This project showcases a series of SQL operations performed on an E-commerce dataset using MySQL Workbench.
The goal was to explore, analyze, and optimize data to derive actionable insights.
All tasks were executed using SQL queries, and screenshots of query results are included in this repository for reference.
- Used
SELECT,WHERE,ORDER BY, andGROUP BYclauses to explore data. - Analyzed customer behavior, product categories, and order priorities.
- Joined the
orderstable with a hypotheticalcustomerstable. - Demonstrated
INNER JOIN,LEFT JOIN, andRIGHT JOINto show different join results and use cases.
- Used subqueries to extract insights such as:
- Customers with total sales above average.
- Orders with high profits or discounts.
- Applied
SUM(),AVG(), andCOUNT()functions to analyze:- Sales performance
- Average profits
- Number of orders
- Created reusable SQL views like:
HighPriorityOrdersProductCategorySalesSummary
- Made recurring analysis faster and cleaner.
- Created indexes on frequently used columns:
Customer_Id,Product_Category,Order_Priority,Payment_method
- Demonstrated how indexing improves query performance.
- Included example of multi-column indexes and indexing strategies.
Order_Date,Time,AgingCustomer_Id,Gender,Device_Type,Customer_Login_typeProduct_Category,Product,Sales,Quantity,Discount,Profit,Shipping_CostOrder_Priority,Payment_method
Screenshots of all SQL tasks and output results (taken from MySQL Workbench) are included in the /screenshots folder for reference and transparency.
This is a beginner to intermediate-level project designed to showcase SQL skills on real-world e-commerce-style data.