Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QUESTION Customer Segmentation by Frequency of Purchases Hard 2 x 0 1 2 0 Write an SQL query to categorize customers based on the number
QUESTION
Customer Segmentation by Frequency of Purchases
Hard
Write an SQL query to categorize customers based on the number of unique shopping days they have within the Electronics'product category, using data from the Customers and Orders tables.
While categorization we will only consider those customers who have made any order
Criteria for Customer Categorization based on the no of unique buying days:
Classify as Frequent Shoppers those who shopped on or more different days.
Classify as Moderate Shoppers those who shopped between and different days.
Classify as Occasional Shoppers those who shopped on fewer than different days.
Tables Schema as Below:
tableCustomerscolumnNamedataTypeCustomerIDintCustomerNamevarchar
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started