E-Commerce Sales & Customer Behavior Analysis using Oracle SQL & Power BI

This project focuses on delivering data-driven insights for a leading Indian e-commerce platform by leveraging Oracle SQL for data cleaning and transformation and Power BI for interactive reporting. The goal was to empower business stakeholders with actionable information on revenue growth, customer behavior, product performance, delivery efficiency, satisfaction trends, and payment preferences.

Tools & Technologies:

Business Objectives:

Key Deliverables:

Business Insights & Recommendations:

SQL Work & Business Logic Development

In this project, I extensively used Oracle SQL for cleaning, transforming, and analyzing the e-commerce dataset before integrating it with Power BI for visualization. The SQL work included:

SQL Query

Revenue by Product Category

SELECT 
    p.product_category_name,
    ROUND(SUM(oi.price + oi.freight_value), 2) AS total_revenue
FROM order_items oi
JOIN products p ON oi.product_id = p.product_id
GROUP BY p.product_category_name
ORDER BY total_revenue DESC;

Montly Revenue

SELECT 
    TO_CHAR(o.order_purchase_ts, 'YYYY-MM') AS order_month,
    ROUND(SUM(oi.price + oi.freight_value), 2) AS monthly_revenue
FROM orders o
JOIN order_items oi ON o.order_id = oi.order_id
GROUP BY TO_CHAR(o.order_purchase_ts, 'YYYY-MM')
ORDER BY order_month;

Monthly Customer Acquisition

select count(distinct(customer_id)) as customer_count, TO_CHAR(ORDER_PURCHASE_TS, 'YYYY-MM') as Month from orders
group by TO_CHAR(ORDER_PURCHASE_TS, 'YYYY-MM')
order by month;

Click Here To See the Full SQL Report

Dashboard Previews:

Executive Overview

Executive Overview Dashboard

Sales & Customer Insights

Sales & Customer Insights Dashboard

Product & Delivery Analysis

Product & Delivery Analysis Dashboard

Review & Payment Behavior

Review & Payment Behavior Dashboard

Dashboard Video


Project Impact: