Type: Personal / Portfolio Project
Tools: SQL (PostgreSQL)
Data: Synthetic (AI-generated)
This project simulates an e-commerce sales database and demonstrates core SQL skills used in real-world analytics work.
It focuses on extracting insights about customer behavior, revenue trends, and segmentation using SQL queries.
All data is synthetic and created for educational and portfolio purposes only.
- What are the monthly revenue trends by product category?
- Which cities generate the most revenue?
- Who are our most valuable customers (via RFM segmentation)?
- How many customers are repeat vs. one-time buyers?
| Script | Description |
|---|---|
monthly_revenue_by_category.sql |
Aggregates monthly sales by product category |
top_cities_by_revenue.sql |
Identifies top 10 cities by total revenue |
rfm_segmentation.sql |
Segments customers using Recency, Frequency, and Monetary metrics |
repeat_vs_onetime_customers.sql |
Compares counts of one-time vs. repeat customers |
- Load the CSV files (
customers.csv,products.csv,orders.csv) into a PostgreSQL database. - Run each
.sqlscript to generate insights. - Use the query outputs to build reports or dashboards.
- All data is synthetic, created with AI assistance.
- This is a self-initiated project created to meet portfolio requirements and showcase SQL proficiency.
- No real company or clients are associated with this project.
This project is licensed under the MIT License.