Problem 3230 · Hard

Customer Purchasing Behavior Analysis

SQL teaching model. Join purchases to categories, total each customer, count distinct categories, and pick the most-bought category with a fixed alphabetical tie-break.

Open the interactive visualisation