This project analyzes a real-world Zepto e-commerce dataset using SQL. The objective is to demonstrate SQL skills required for Data Analyst roles, including data exploration, cleaning, aggregation, business analysis, and reporting.
The project answers common business questions such as:
- Which products offer the highest discounts?
- Which expensive products are currently out of stock?
- Which product categories generate the highest estimated revenue?
- Which categories provide the highest average discounts?
- What is the inventory weight available for each category?
- SQL
- PostgreSQL
- DBeaver
The dataset contains product-level information from Zepto, including:
-
SKU ID
-
Product Name
-
Category
-
MRP
-
Discount Percentage
-
Discounted Selling Price
-
Available Quantity
-
Product Weight
-
Stock Availability
-
Quantity
sku_id
name
category
mrp
discountpercent
availablequantity
discountedsellingprice
weightingms
outofstock
quantity- Grocery category generated the highest estimated revenue.
- Several premium products were out of stock.
- Some products offered discounts above 70%.
- Categories showed significant variation in average discount percentages.
Performed exploratory analysis including:
- Total number of products
- Sample data inspection
- Missing value detection
- Distinct product categories
- In-stock vs out-of-stock products
- Duplicate product names

Cleaning steps performed:
The project answers the following business questions:
Products with the highest discount percentage.
Identifies expensive products unavailable for purchase.
Calculates potential revenue using:
Revenue = Discounted Selling Price Γ Available Quantity
Products priced above βΉ500 but offering less than 10% discount.
Ranks categories based on average discount percentage.
Calculates price per gram for products weighing at least 100g.
Groups products into:
- Low
- Medium
- Bulk
based on product weight.
Calculates the total inventory weight available for every category.
-
CREATE TABLE
-
DROP TABLE
-
INSERT
-
UPDATE
-
DELETE
-
SELECT
-
DISTINCT
-
WHERE
-
GROUP BY
-
HAVING
-
ORDER BY
-
LIMIT
-
Aggregate Functions
- COUNT()
- SUM()
- AVG()
-
CASE WHEN
-
Data Cleaning
-
Business Analysis Queries
- SQL Query Writing
- Data Cleaning
- Data Exploration
- Data Aggregation
- Business Problem Solving
- Data Analysis
- Reporting
Zepto-SQL-Project/
β
βββ screenshots
|
βββ License
|
βββ README.md
|
βββ zepto_sql_project.sql
|
βββ zepto_dataset.csv
This project demonstrates practical SQL skills by solving real-world business problems using an e-commerce dataset. It showcases the ability to clean, explore, analyze, and extract meaningful insights from data, making it suitable for Data Analyst portfolio projects.







