Olist E-Commerce Project Overview
This project simulates a real-world data analysis scenario for an international e-commerce company expanding into Africa. The goal was to design a relational database from raw transactional data and use SQL to generate business insights about customers, deliveries, products, sellers and payments.
Executive Summary
The dataset used is the Olist Brazilian E-Commerce Public Dataset, which contains information on orders, customers, products, sellers, payments, reviews and delivery logistics.
The project was divided into two major phases:
- Part A: Database Design
- Part B: Business Analytics Queries
Key Findings:
- Revenue performance: The project quantifies overall platform revenue, then breaks it down over time (monthly trend) and by what’s being sold (category revenue). This is the core “growth + mix” view needed for expansion planning.
- Revenue concentration: The “Top 10 customers” and “Top 10 sellers” visuals show that value is concentrated in a small set of accounts, which is useful for prioritising retention (customers) and partner management (sellers).
- Service performance & experience risk: Delivery-speed metrics (average delivery time, late-delivery rate, slowest region) identify operational constraints that would directly affect customer satisfaction in a new market.
- Quality vs. revenue trade-off: The rating distribution + “high revenue but low ratings” chart flags sellers who drive sales but may create churn and brand damage. These are prime targets for intervention (SLA enforcement, quality controls, delisting rules).
Part A: Database Design
1. Database Creation
First, I created a dedicated database to store the e-commerce data.
USE ecommerce_db1;
This ensures that all tables and relationships are organised within a single environment.
2. Data Import and Table Creation
The raw dataset consisted of multiple CSV files representing different entities in the e-commerce ecosystem.