Day 15 – Hands-On Project: Sales Data Analysis with Excel & SQL

Introduction (Project-Based Learning Style)

Practical experience is key to mastering data analysis. Hands-on projects allow learners to apply theory to real-world scenarios, bridging the gap between knowledge and execution.

Imagine a retail store in Nagpur wanting to understand monthly sales performance, product trends, and regional revenue differences. Using Excel and SQL together, analysts can extract, clean, analyze, and visualize sales data efficiently.

At CuriosityTech.in, learners complete end-to-end projects, connecting Excel pivot tables with SQL queries to generate actionable business insights.


Step 1: Defining Project Objectives

Objective: Analyze sales data to answer questions such as:

  • What are the top-selling products?
  • Which region has the highest revenue?
  • How does monthly revenue trend over the year?
  • Are there any outliers or anomalies in sales data?

Dataset: Retail sales CSV with columns:

  • Order_ID, Product, Category, Region, Revenue, Quantity, Date

Step 2: Extract Data Using SQL

SQL Queries:

  1. Total Revenue by Region:

SELECT Region, SUM(Revenue) AS TotalRevenue

FROM Sales

GROUP BY Region

ORDER BY TotalRevenue DESC;

  1. Top 5 Products by Revenue:

SELECT Product, SUM(Revenue) AS TotalRevenue

FROM Sales

GROUP BY Product

ORDER BY TotalRevenue DESC

LIMIT 5;

  1. Monthly Sales Trend:

SELECT MONTH(Order_Date) AS Month, SUM(Revenue) AS MonthlyRevenue

FROM Sales

GROUP BY Month

ORDER BY Month;

  1. Detect Outliers (Revenue > 3 SD from mean):

WITH stats AS (

SELECT AVG(Revenue) AS mean_rev, STDDEV(Revenue) AS sd_rev FROM Sales )

SELECT * FROM Sales, stats

WHERE Revenue > mean_rev + 3*sd_rev;


Step 3: Analyze Data in Excel

  1. Load SQL query results into Excel or open CSV
  2. Create Pivot Tables:
    • Rows: Product, Region
    • Values: SUM(Revenue), SUM(Quantity)
    • Filters: Month or Category
  3. Charts & Visualization:
    • Column chart for revenue by product
    • Line chart for monthly trends
    • Pie chart for revenue by region
  4. Conditional Formatting: Highlight top products and regions

Step 4: Project Task Table

TaskToolFunction / SQL Query / Excel FeaturePurpose
Extract data by regionSQLGROUP BY RegionIdentify highest revenue regions
Extract top productsSQLGROUP BY Product ORDER BY SUM(Revenue)Determine top-performing products
Monthly trend analysisSQL + ExcelMONTH(Order_Date) + Pivot TableVisualize sales trends over time
Summarize revenue & quantityExcelPivot Table + SUMAggregate key metrics
Highlight anomaliesSQL + ExcelRevenue > mean + 3*SD + Conditional FormattingDetect unusual transactions
Visual reportingExcelCharts & DashboardCommunicate insights effectively

Step 5: Project Workflow Diagram


Step 6: Real-World Scenario

Scenario: A Nagpur retail chain wants to analyze quarterly sales:

  1. Extract regional revenue using SQL
  2. Identify top 5 products contributing to revenue
  3. Use Excel pivot tables to summarize revenue by product and month
  4. Visualize trends with line and column charts
  5. Detect anomalies and high-revenue outliers
  6. Compile an executive dashboard for store managers

Outcome: Management can optimize inventory, plan promotions, and improve product placement based on analytical insights.

At CuriosityTech.in, learners simulate this end-to-end project, integrating SQL extraction with Excel analysis to develop a complete real-world workflow, preparing them for professional analyst roles in 2025.


Common Mistakes

  1. Skipping data cleaning → inaccurate results
  2. Using incorrect aggregation functions → misleading insights
  3. Overcomplicating Excel dashboards → reduces readability
  4. Ignoring outliers → misinterpretation of trends
  5. Not documenting SQL queries or Excel steps → reduces reproducibility

Tips to Master Project-Based Analysis

  • Always define clear objectives before starting analysis
  • Use SQL for extraction, Excel for aggregation and visualization
  • Combine charts and conditional formatting for insights
  • Validate findings by cross-checking with raw data
  • At CuriosityTech.in, learners complete multiple sales data projects to build a professional portfolio for analytics careers

Infographic Description: “Hands-On Sales Analysis Pipeline”

Visualize as a stepwise pipeline, connecting SQL extraction → Excel analysis → visualization → decision-making.


Conclusion

Hands-on projects build real-world analytical skills. By integrating SQL and Excel, analysts can extract, clean, analyze, and visualize sales data effectively, delivering actionable business insights.

At CuriosityTech.in, learners in Nagpur gain practical experience with live datasets, simulating professional workflows that prepare them for data analyst roles in 2025. Contact +91-9860555369 or contact@curiositytech.in to start your hands-on analytics projects.


Leave a Comment

Your email address will not be published. Required fields are marked *