Skip to content

rishi2001-bot/SQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Zepto Data Analysis with SQL

๐Ÿ“Œ Project Overview

This project involves performing data analysis on a dataset from Zepto, a quick-commerce delivery platform. The goal is to derive business insights related to product pricing, discounts, inventory availability, and category performance.

The analysis is performed using SQL and covers advanced concepts such as:

  • Aggregations (SUM, AVG, COUNT)
  • Window Functions (RANK, OVER, PARTITION BY)
  • Common Table Expressions (CTEs)
  • Conditional Aggregation (CASE WHEN)
  • Statistical Functions (PERCENTILE_CONT)

๐Ÿ› ๏ธ Database Schema

The analysis is based on the zepto table, which stores product-level details.

DROP TABLE IF EXISTS zepto;

CREATE TABLE zepto (
    sku_id SERIAL PRIMARY KEY,
    category VARCHAR(120),
    name VARCHAR(150) NOT NULL,
    mrp NUMERIC(8,2),
    discountPercent NUMERIC(5,2),
    availableQuantity INTEGER,
    discountedSellingPrice NUMERIC(8,2),
    weightInGms INTEGER,
    outOfStock BOOLEAN,
    quantity INTEGER
);

๐Ÿš€ How to Use
1. Set up your database: Execute the schema creation script in your SQL environment (e.g., PostgreSQL).
2. Import Data: Load your dataset into the zepto table.
3.Run Queries: Execute the provided SQL scripts to replicate the analysis.

About

This project involves performing data analysis on a dataset from Zepto, a quick-commerce delivery platform. The goal is to derive business insights related to product pricing, discounts, inventory availability, and category performance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors