An end-to-end Enterprise E-Commerce Analytics project built using PostgreSQL, SQL, ETL pipelines, and Power BI on the Brazilian Olist E-Commerce dataset.
The project demonstrates the complete data analytics lifecycleβfrom raw CSV files to database design, ETL, SQL analytics, business reporting, and interactive dashboards.
This project simulates a real-world enterprise analytics solution for an e-commerce company.
The raw Olist Brazilian E-Commerce dataset is imported into PostgreSQL using an ETL pipeline, cleaned, transformed, and optimized for analytical reporting.
Business-focused SQL queries, analytical views, KPIs, and Power BI dashboards provide insights into sales, customers, sellers, payments, delivery performance, and product trends.
The project follows an end-to-end analytics workflow similar to what is implemented in modern Business Intelligence teams.
- PostgreSQL
- SQL
- Power BI
- ETL Pipeline
- CSV Files
- Git & GitHub
- Enterprise PostgreSQL Database Design
- Complete ETL Pipeline
- Data Cleaning & Validation
- SQL Analytics
- Business KPI Analysis
- Window Functions
- Common Table Expressions (CTEs)
- Analytical Views
- Query Optimization
- Interactive Power BI Dashboards
- Architecture Documentation
- Database Schema
- ETL Workflow Documentation
The project follows a complete enterprise analytics workflow from raw data ingestion to business intelligence reporting.
The PostgreSQL database is designed using a relational schema with normalized tables connected through primary and foreign keys.
The ETL process extracts raw CSV files, validates and cleans the data, transforms it into structured tables, and creates analytical views for reporting.
Enterprise-Ecommerce-Analytics/
β
βββ analysis/ # SQL analysis queries
βββ cleaning/ # Data cleaning scripts
βββ dashboards/ # Power BI dashboard (.pbix)
βββ data/
β βββ raw/ # Raw Olist CSV datasets
βββ database/ # Database creation scripts
βββ diagrams/ # Architecture, Schema & ETL diagrams
βββ documentation/ # Project documentation
βββ etl/ # ETL loading scripts
βββ optimization/ # Query optimization
βββ screenshots/ # SQL & Dashboard screenshots
βββ views/ # Analytical SQL views
β
βββ README.md
βββ LICENSE
Dataset: Brazilian Olist E-Commerce Dataset
The dataset contains information about:
- Customers
- Orders
- Order Items
- Products
- Sellers
- Payments
- Reviews
- Geolocation
- Category Translation
It contains nearly 100,000 orders placed across Brazil and is widely used for SQL and Business Intelligence projects.
This project demonstrates a wide range of SQL concepts including:
- SELECT Statements
- Filtering & Sorting
- GROUP BY
- HAVING
- Aggregate Functions
- CASE Statements
- Joins
- Subqueries
- Common Table Expressions (CTEs)
- Window Functions
- Ranking Functions
- Views
- Indexing
- Constraints
- Data Cleaning
- Query Optimization
This project answers important business questions such as:
- What is the total revenue?
- Which months generate the highest revenue?
- Which products contribute the most revenue?
- Who are the top-performing sellers?
- Which states generate the highest sales?
- Which cities have the most customers?
- What is the average order value?
- Which payment methods are most popular?
- How efficient is the delivery process?
- Which customers spend the most?
- Which products underperform?
- How do revenue trends change over time?
- Revenue KPIs
- Monthly Revenue Trend
- Product Categories
- Top Sellers
- Revenue by State
- Revenue by City
- Top Customers
- Average Order Value
- Payment Analysis
- Delivery Performance
- Review Distribution
- Operational KPIs
- Total Revenue
- Total Orders
- Total Customers
- Average Review Score
- Average Delivery Time
- Revenue by Category
- Revenue by State
- Revenue by Seller
- Payment Distribution
- Customer Spending
git clone https://github.com/rudrasave/Enterprise-Ecommerce-Analytics.gitcd Enterprise-Ecommerce-Analytics- Install PostgreSQL.
- Execute the scripts in the following order:
- create_database.sql
- create_tables.sql
- constraints.sql
- indexes.sql
Run the SQL scripts inside the etl/ folder to import the CSV files.
Execute the SQL scripts inside the analysis/ folder.
Open the following file in Power BI Desktop:
dashboards/Enterprise_Ecommerce_Analytics_Final.pbix
- Deploy dashboards to Power BI Service
- Automate ETL using Apache Airflow
- Integrate live data sources
- Build real-time dashboards
- Add customer segmentation using Machine Learning
- Create forecasting models for sales prediction
- Optimize SQL queries for large-scale datasets
Rudra Save
Electronics & Telecommunication Engineering Student
Aspiring Data Analyst | SQL | PostgreSQL | Power BI | Python
π§ Email: your-email@example.com
πΌ LinkedIn: https://www.linkedin.com/in/YOUR-LINKEDIN/
π GitHub: https://github.com/rudrasave
This project is licensed under the MIT License.
Feel free to use this project for learning and portfolio purposes.





