SQLDAXExcelPython
LeaderboardRunLifetime
Window functionsHard30 points

Top customer in each region

Return Region, CustomerName and total Amount for the customer with the highest revenue in each region. Expect one row per region.

Hard questions are part of Lifetime and Pro. Read it here, and unlock running and checking your answer from the plans.

Show solutionLifetime

Runs in your browser with DuckDB, whose SQL is close to PostgreSQL. Nothing you type is sent to a server unless you save a score.

SQLselect text to run only that part
Loading editor…

Press Ctrl+Enter or Run to see the result here.