Skip to the content.

🛍️ Online Retail Sales Analysis with SQL

📌 Project Overview

This project focuses on analyzing sales data from an online retail store using SQL and PostgreSQL. The goal is to explore customer behavior, product performance, geographic trends, and overall sales performance to extract meaningful business insights.

It was done as part of a data analytics portfolio, showcasing skills in data cleaning, querying, and drawing insights using structured query language (SQL).


🧾 Dataset Overview


🎯 Objectives

The analysis aims to answer the following business questions:

1. Customer Value & Behavior

2. Sales Performance Over Time

3. Best and Worst Performing Products

4. Market/Geography Insights


🧹 Data Cleaning Steps

Data cleaning was done using SQL (PostgreSQL), and included:


🔍 Exploratory Data Analysis (EDA)

SQL queries were used to:


🔍 Sample SQL Queries

-- Monthly Revenue Trend
SELECT 
    DATE_TRUNC('month', InvoiceDate) AS month,
    ROUND(SUM(Quantity * UnitPrice), 2) AS total_revenue
FROM 
    online_retail_sales
GROUP BY 
    month
ORDER BY 
    month;

💡 Key Insights


🛠 Tools & Technologies


📁 Files


This project is part of a personal data portfolio to demonstrate SQL data analysis skills.