SQL practice — grouping and filtering groups

Practice session. 16 questions — get through what you can. No time limit.

Before you start

What changed from last time: there's a real database in this page and a Run button. Write a query, run it, see what comes back, fix it, run it again. That's the point — last round asked you to write SQL blind, which isn't how anyone actually works.

Still on your own — no Google, no ChatGPT/Claude, no asking a colleague. But iterate as much as you like. There's no attempt limit and nothing is penalised.

I'm measuring the questions, not you. Getting stuck is useful data. If one won't crack, hit "I'm stuck" and move on. You can stop whenever, and pull out of the whole thing later with no explanation needed.

When you're done, scroll to the bottom and send me the log.

Loading the database…

Send it back

Click copy, then paste into our chat. It's a record of the queries you ran — no personal data in it.

Thanks. Genuinely useful either way.