About the “RFM Customer Segmentation Score & Quartile Assignment” SQL Problem
Business Scenario
CRM marketing automation divides customer bases into behavioral quartiles across Monetary spend to tailor campaign promotions.
Expected Output & Criteria
Customer monetary quartile distribution from top to bottom tier.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMCREATE TABLE customer_rfm_summary (
customer_id INT PRIMARY KEY,
total_orders INT NOT NULL,
total_spend NUMERIC(10, 2) NOT NULL
);Target SQL Clauses & Operators
NTILEOVERORDER BY
Want more Business Analytics practice?
Explore the full syllabus of 18 exercises and syntax guides.