Skip to content

CodeNinjaLab/ecommerce-sql-insights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

E-commerce Sales & Customer Insights (Self-Initiated Project)

Type: Personal / Portfolio Project
Tools: SQL (PostgreSQL)
Data: Synthetic (AI-generated)


πŸ“Š Project Overview

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.


πŸ’Ό Business Questions Answered

  • 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?

πŸ› οΈ SQL Scripts Included

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

πŸ“‚ How to Use

  1. Load the CSV files (customers.csv, products.csv, orders.csv) into a PostgreSQL database.
  2. Run each .sql script to generate insights.
  3. Use the query outputs to build reports or dashboards.

πŸ“Œ Notes

  • 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.

πŸ“ License

This project is licensed under the MIT License.

About

"SQL analysis project for customer segmentation and sales insights using synthetic e-commerce data."

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published