This project simulates a real-world data analysis workflow for a fictional electronics retailer, "TechTrends." The goal was to transform raw sales data into actionable business insights using SQL.
Key Objectives:
- Revenue Analysis: Determine which product categories drive the most sales.
- Customer Segmentation: Identify VIP clients based on spending thresholds.
- Trend Analysis: Track sales volume over time (monthly trends).
- SQL Dialect: MySQL / PostgreSQL
- Key Skills:
JOINS,Aggregate Functions,CASE Statements,Date Extraction,Normalization.
First, I designed a normalized schema with three tables: Customers, Products, and Sales.

I joined all three tables to create a comprehensive view of every transaction, calculating the total cost dynamically.
Result:

Here, I grouped sales by customer to calculate the total lifetime value (LTV) of each client.
Result:

I extracted the month from the transaction timestamp to track sales volume trends over time.
Result:

Using CASE statements, I automatically labeled customers as "VIP" or "Standard" based on their spending history ($500 threshold).
Result:

This project demonstrates the ability to take raw, scattered data and turn it into clear business metrics. By using advanced SQL techniques like CASE logic and multi-table JOINs, I was able to identify that Electronics are our primary revenue driver and successfully segment our high-value customers.
- Clone this repository.
- Open the
tech_trends_analysis.sqlfile in any SQL environment. - Run the script to generate the database and view the insights.