This project focuses on analyzing e-commerce inventory data using SQL and PostgreSQL. The analysis explores product details, pricing, discounts, inventory availability, product categories, and estimated revenue to generate meaningful business insights.
The project demonstrates practical SQL skills through data cleaning, exploratory analysis, aggregation, filtering, conditional logic, and business-oriented queries.
- Analyze e-commerce product and inventory data.
- Clean and validate the dataset before analysis.
- Explore products across different categories.
- Analyze product pricing and discount patterns.
- Examine inventory availability and stock levels.
- Identify products with significant discounts.
- Calculate estimated revenue based on selling price and available quantity.
- Generate useful business insights using SQL.
The dataset contains product-level information from an e-commerce inventory system.
Key attributes include:
- Product name
- Category
- MRP
- Discount percentage
- Selling price
- Available quantity
- Out-of-stock status
- Product-related attributes
- PostgreSQL
- SQL
- pgAdmin
- CSV
The dataset was explored to understand its structure, product categories, pricing information, inventory levels, and availability.
Data quality checks were performed to identify and handle:
- Missing values
- Duplicate records
- Invalid values
- Pricing inconsistencies
- Products with unavailable inventory
The analysis includes:
- Product distribution by category
- Product availability
- Inventory quantities
- Product pricing
- Discount patterns
- Products with high and low discounts
SQL queries were used to analyze MRP, selling prices, discount percentages, and pricing patterns across different products and categories.
Inventory data was analyzed to identify available and out-of-stock products and understand stock distribution.
Estimated revenue was calculated using selling prices and available inventory quantities to understand the potential revenue contribution of products.
- SELECT
- WHERE
- DISTINCT
- ORDER BY
- GROUP BY
- HAVING
- Aggregate Functions
- CASE Statements
- String Functions
- Mathematical Operations
- NULL Handling
- Data Type Conversion
- Subqueries
- Conditional Filtering
zepto-sql-data-analysis/
│
├── Zepto_SQL_data_analysis.sql
├── zepto_v2.csv
└── README.md
- Install PostgreSQL and pgAdmin.
- Create a new PostgreSQL database.
- Import the
zepto_v2.csvdataset into the required table. - Open
Zepto_SQL_data_analysis.sqlin pgAdmin. - Execute the SQL statements sequentially.
- Review the query results and business insights.
- SQL Data Analysis
- PostgreSQL
- Data Cleaning
- Exploratory Data Analysis
- Data Aggregation
- Business Analysis
- Inventory Analysis
- Revenue Analysis
- Data Quality Validation
This project demonstrates how SQL can be used to transform raw e-commerce inventory data into meaningful business insights. The analysis focuses on product performance, pricing, discounts, inventory availability, and estimated revenue using PostgreSQL.
Gembali Uday Krishna
B.Tech - Electronics and Communication Engineering 2024 Graduate