Sample: SQL puzzle
6 Nov 2026, 22:06 → 21 Nov 2026, 22:06 (Africa/Lagos) · entry: code
The puzzle
Write a SQL query that lists each customer's total spend, highest first.
SQL
sql
-- tables: customers(id, name), orders(id, customer_id, amount)
-- tables: customers(id, name), orders(id, customer_id, amount)
Rules
One entry per person. Entries are read by people; nothing is run.
How entries are judged
- Correct result — up to 10 points
- Readability — up to 5 points
Entries are read and marked by the judges. Nothing you send is run on this website.
Your entry
Entries are closed.