Skip to content

Latest commit

 

History

614 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📊 SQL-Project-E-Commerce-Case

📝 Overview

This repository presents a complete SQL-based Data Analytics Pipeline, progressing from Data Warehousing to Exploratory Data Analysis (EDA) and finally to Advanced Analytics. The goal is to create a structured, efficient, and insightful SQL-driven analytical workflow.

Dataset used: Brazilian E-Commerce Public Dataset by Olist ➝ Kaggle Link

SQL Server Draw.io GitHub PowerPoint


Project Workflow

1️⃣ Data Warehouse (DWH) & ETL 📂

🟢 Objective: Build a Data Warehouse using SQL Server, implementing ETL processes.

🛠 Approach: Leverages the Medallion Architecture (Bronze, Silver, and Gold layers) to store and transform raw data into business-ready insights.

📌 Key Steps:

  • 🏛 Data Architecture: Bronze Layer for raw data ingestion and storage, Silver Layer for cleaned, validated, and standardized data. Gold Layer for business-ready, aggregated data optimized for analytics.
  • ⚙ ETL Pipelines: Batch processing strategies for data ingestion and transformation.
  • 📊 Final Output: Clean, structured data stored in the Gold Layer using Star Schema with fact and dimension views ready for analytics.

💼 Business Value:

  • A Data Warehouse serves as the single source that consolidates disparate data sources into a unified, consistent format. This enables businesses to perform cross-functional analysis, identify trends that span multiple departments, and generate insights.
  • The structured approach demonstrated in this project - with bronze, silver, and gold layers - reflects how enterprises manage data quality and accessibility at scale and shows the technical infrastructure required.

🔗 Reference: DWH Project


2️⃣ Exploratory Data Analysis (EDA) 🔍

🟢 Objective: Investigate the dataset to discover patterns, spot anomalies, make statistic analysis and extract meaningful insights.

🛠 Approach: Use the Gold Layer from the DWH to perform the analysis exploring 5 strategic analytical dimensions.

📌 Key Objects:

  • 🗄️Database Profiling: Understanding data structure, quality, and storage patterns.
  • 📆Temporal Analysis: Uncovering time-based trends and seasonality.
  • 🔢Key metrics Exploration: Identifying distributions, outliers and segmentation.
  • ⚖️Magnitude Analysis: Quantifying business entity performance across multiple metrics.
  • 🏆Rank Analysis: Identify top/bottom-performing entities and establish competitive benchmarks.

💼 Business Value:

  • Exploratory Data Analysis serves as the analytical bridge between data infrastructure and business intelligence. Through systematic investigation across those multiple dimensions organizations can identify hidden opportunities, detect emerging risks, and understand the underlying drivers of their business performance.
  • This project shows how it is possible to systematically explore business datasets by focusing on distinct analytical areas rather than conducting random exploratory queries

🔗 Reference: EDA Project


3️⃣ Advanced Analytics 📈

🟢 Objective: Deliver advanced analytical insights by applying complex SQL techniques (trend analysis, cumulative metrics, segmentation, performance evaluation) with a focus on multi-level granularity, enabling consistent and reliable reports across departments (logistics, marketing, production, sales, etc.).

🛠 Approach: Build queries using layered CTEs, window functions, and segmentation logic, carefully linking different levels of detail to avoid inconsistent or misleading outputs while maintaining scalability and analytical depth.

📌 Key Objects:

  • 🌍 Country Market Summary: Provides market-level indicators per country (customers, sellers, products, orders, revenue, domestic vs. foreign share).

  • 👥 Customer Segmentation & RFM Analysis: Builds customer profiles based on recency, frequency, and monetary metrics.

  • 📦 Product Performance Summary: Delivers product-level performance metrics (revenue, orders, customers, price, positioning vs. category benchmarks, reviews).

💼 Business Value

These queries act as foundational analytical reports:

  • Consolidates raw data into structured, business-ready datasets (markets, customers, products).
  • Enables analysts and BI teams to build dashboards and reports without re-writing complex SQL.
  • Delivers standardized and repeatable KPIs, ensuring consistency across teams and departments.
  • Serves as a foundation for deeper analysis — from marketing segmentation to revenue forecasting and product lifecycle management.

In short: these queries are not just one-off analyses, but reusable building blocks that bridge the gap between data engineering and business intelligence.

🔗 Reference: Advanced Analytics


🔧 Technologies Used

  • 🗄 SQL Server: Data processing & querying.
  • 📂 CSV Datasets: Source files for ETL processes.
  • 📊 SSMS: SQL Server Management Studio for database interaction.
  • 🖼 DrawIO & Power Point: Data architecture visualization.
  • 🐙 GitHub: Version control & collaboration.

📜 License

This project is licensed under the MIT License.

About

This repository contains multiple SQL projects, covering Data Warehousing, Exploratory Data Analysis (EDA), and Advanced Analytics. Throughout these projects, SQL Server Management Studio (SSMS) was used to design, query, and manage the entire workflow

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages