Answered step by step
Verified Expert Solution
Link Copied!

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
2x
0120
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 8 or more different days.
Classify as Moderate Shoppers those who shopped between 4 and 7 different days.
Classify as Occasional Shoppers those who shopped on fewer than 4 different days.
Tables Schema as Below:
\table[[Customers],[columnName,dataType],[CustomerID,int],[CustomerName,varchar (255)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Select Healthcare Classification Systems And Databases

Authors: Katherine S. Rowell, Ann Cutrell

1st Edition

0615909760, 978-0615909769

More Books

Students also viewed these Databases questions

Question

3 The distinction between microeconomics and macroeconomics.

Answered: 1 week ago