This repository contains the SQL scripts used to analyze the performance of promotional campaigns run by AtliQ Mart during Diwali 2023 and Sankranti 2024. The project addresses various business requests related to identifying high-value discounted products, store distribution, campaign effectiveness, and product performance in terms of incremental sales and revenue.
Promotional campaigns play a crucial role in the retail industry, driving sales and attracting customers during festive seasons. This project aims to analyze the performance of promotional campaigns conducted by AtliQ Mart during Diwali 2023 and Sankranti 2024. By leveraging data analytics, we seek to gain insights into the effectiveness of these campaigns and provide recommendations for optimizing future marketing strategies.
The analysis is based on data obtained from AtliQ Mart's internal databases. The main datasets used include fact_events, dim_products, dim_stores, and sales_summary. These datasets contain information about product sales, store locations, promotional events, and campaign revenues.
- Analyzed data from AtliQ Mart's internal databases.
- Performed SQL queries to fulfill five business requests.
- Insights are intended to inform future promotional strategies and resource allocation.
Objective: Identify high-value products featured in the 'BOGOF' (Buy One Get One Free) promotion.
SELECT
DISTINCT p.product_name,
f.base_price
FROM
fact_events f
JOIN
dim_products p ON f.product_code = p.product_code
WHERE
f.promo_type = 'BOGOF' AND f.base_price > 500;
Objective: Provide an overview of the number of stores in each city.
SELECT
City,
COUNT(store_id) as Total_Stores
FROM
dim_stores
GROUP BY
City
ORDER BY
Total_Stores DESC;
Objective: Display total revenue generated before and after each promotional campaign.
SELECT
campaign_name,
CONCAT(ROUND(SUM(revenue_before) / 1000000, 2), 'M') AS Revenue_Before,
CONCAT(ROUND(SUM(revenue) / 1000000, 2), 'M') AS Revenue_After
From
sales_summary
GROUP BY
campaign_name;
Objective: Calculate Incremental Sold Quantity (ISU%) for each category during the Diwali campaign.
SELECT
category,
`ISU%`,
RANK() OVER (ORDER BY `ISU%` DESC) AS Ranking
FROM
(
SELECT
category,
SUM(ISU) as ISU,
ROUND(SUM(ISU) / SUM(quantity_before_promo) * 100,2) as `ISU%`
FROM
sales_summary
WHERE
CAMPAIGN_NAME = "Diwali"
GROUP BY
category
) AS subquery;
Objective: Identify the top 5 products ranked by Incremental Revenue Percentage (IR%) across all campaigns.
SELECT
product_name,
category,
ROUND (SUM(IR) / SUM(revenue_before) * 100,2) AS `IR%`,
RANK() OVER (ORDER BY SUM(IR) / SUM(revenue_before) * 100 DESC) AS ranking
FROM
sales_summary
GROUP BY
product_name, category
ORDER BY
`IR%` DESC
LIMIT 5;
One significant limitation encountered during the analysis is related to the handling of promotions with the 'BOGOF' (Buy One Get One Free) promotion type. The dataset does not accurately account for the quantity of the free item provided as part of the promotion. This limitation may lead to some discrepancies or misunderstandings in the analysis, particularly when evaluating the effectiveness of 'BOGOF' promotions and comparing them with other promotion types.
The analysis revealed several key insights:
- High-value products featured in 'BOGOF' promotions.
- Distribution of stores across different cities.
- Total revenue generated before and after each promotional campaign.
- Incremental sold quantity and revenue percentage during the Diwali campaign.
- Top 5 products ranked by incremental revenue percentage.
These insights can help AtliQ Mart make informed decisions for future promotional activities, optimize resource allocation, and improve overall sales performance.
Overall, the analysis provides valuable insights into the performance of promotional campaigns conducted by AtliQ Mart during Diwali 2023 and Sankranti 2024. By leveraging data analytics, AtliQ Mart can enhance its marketing strategies, attract more customers, and drive higher sales during festive seasons.
In addition to the main business requests, the following recommended insights were explored during the analysis:
- Top 10 Stores by Incremental Revenue (IR): Identify the top-performing stores in terms of incremental revenue generated from promotions.
- Bottom 10 Stores by Incremental Sold Units (ISU): Identify the stores with the lowest performance in terms of incremental sold units during the promotional period.
- City-wise Store Performance: Analyze how store performance varies by city and identify any common characteristics among top-performing stores.
- Top 2 Promotion Types by Incremental Revenue: Determine the top-performing promotion types that resulted in the highest incremental revenue.
- Bottom 2 Promotion Types by Incremental Sold Units: Identify the least effective promotion types in terms of their impact on incremental sold units.
- Comparison of Promotion Types: Analyze the performance differences between discount-based promotions, BOGOF (Buy One Get One Free), and cashback promotions.
- Optimal Promotion Type: Determine which promotions strike the best balance between incremental sold units and maintaining healthy margins.
- High-Lifting Product Categories: Identify product categories that saw significant increases in sales from the promotions.
- Product Responsiveness to Promotions: Analyze specific products that respond exceptionally well or poorly to promotions.
- Correlation between Product Category and Promotion Type Effectiveness: Investigate the relationship between product categories and the effectiveness of different promotion types.
Future work could include:
- Exploring additional datasets to gain deeper insights into customer behavior and preferences.
- Conducting more granular analysis on specific product categories or regions.
- Implementing machine learning models for predictive analytics to forecast sales and optimize promotional strategies.