New: Cookbooks and AI ExplanationsStep-by-Step recipes to solve problems connected to Roadmaps and Cheat Sheets. Need more details? Use AI buttons for structured and simple explanations with concrete examples throughout the whole platform.Take a look
One company-wide top-spenders list crowns a single winner and hides every region's own best customer underneath it.
What you'll have at the end
A ranked top-three list per region, with tie-breaking handled the same way in every region
You need
Read access to a completed-orders table with a customer id and a dollar amount, plus a customers table carrying a region column, joined by that shared customer id.
Not covered
Picking just the one best customer per region, a narrower question a single-row-per-group shortcut can already answer.
Checked 26 Aug 2026
Part of the SQL cookbook