This project analyzes customer behavior, churn prediction, marketing effectiveness, and sales performance using SQL.
The goal is to help businesses improve customer retention, optimize marketing campaigns, and increase revenue by understanding customer purchase behavior.
π οΈ Skills Used: SQL (CTEs, Joins, Window Functions, Aggregations)
Categorize customers based on spending behavior & recency to personalize marketing strategies.
VIP Customers (High Spending, Recent Buyers) should be targeted with loyalty programs.
At-Risk Customers (Haven't bought in 90+ days) need re-engagement campaigns.
Low Spenders churn the most, meaning they might need discounts to stay engaged.
Offer personalized discounts to At-Risk Customers to improve retention.
Identify churned customers & develop retention strategies.
Low-income customers have the highest churn rate (9.19%), while higher-income customers churn slightly less (8.89%).
Lower spenders churn more, while high-value customers are more loyal.
Medium & high spenders rarely churn, meaning they have stronger engagement.
Increase engagement for low-income & low-spending customers with personalized promotions.
Analyze which marketing campaigns performed best.
Campaign 3 had the highest acceptance rate, meaning customers engaged the most.
Low Spenders engaged the most with marketing, showing they respond well to promotions.
VIP Customers didnβt engage as much, meaning they donβt rely on discounts to buy.
Optimize future marketing efforts based on Campaign 3βs strategy.
Use different marketing strategies for VIPs vs. Low Spenders.
Identify whether customers prefer web, store, or catalog purchases.
Key Insights: Store purchases generate the most revenue per order, meaning in-store experiences matter.
Web purchases are frequent but have lower revenue per order, meaning online promotions should focus on volume.
Catalog purchases are less frequent but have high revenue per order, meaning businesses should continue catalog marketing.
Invest in in-store experiences & online promotions based on shopping behavior.
Identify the most valuable customers.
High RFM customers should be prioritized for premium services & exclusive offers.
Low RFM customers need engagement strategies to become loyal buyers.
Create a VIP loyalty program for high RFM customers.
Identify which products are frequently bought together to boost cross-sell opportunities.
Wine & Meat are the most commonly bought together β Opportunity for bundle deals.
Gold & Wine Buyers are a separate premium segment β Target them with luxury promotions.
Launch bundled deals (Wine + Meat, Gold + Wine) to increase sales.
Predict future VIP customers based on spending & frequency.
Potential VIP customers exist & should be nurtured before they churn.
They shop frequently but havenβt reached VIP spending yet.
Offer personalized incentives to transition potential VIPs into high-value customers.
Predict long-term revenue from each customer.
Some customers contribute more long-term revenue than others.
Low CLV customers need engagement campaigns to improve retention.
Use CLV scores to allocate marketing budgets effectively.
All SQL scripts for the analysis are available in this repository:
π 01_Customer_Segmentation.sql
π 02_Customer_Churn.sql
π 03_Marketing_Campaigns.sql
π 04_Sales_Performance.sql
π 05_RFM_Analysis.sql
π 06_Cross_Sell_Analysis.sql
π 07_High_Value_Customer_Prediction.sql
π 08_CLV_Estimation.sql
This diagram represents the structure of the fooddb
table used for customer analytics.
π Hi, I'm AJAYI OLUWASEYI, a Data Analyst passionate about using SQL to solve business problems.
π§ Contact: [email protected]
πΌ LinkedIn: www.linkedin.com/in/ajayi-oluwaseyi-865a35248