r/learnSQL • u/__cybermaxs__ • 6h ago
I made a free set of 54 short SQL exercises that tell you *why* your query is wrong, not just that it is
Hi r/learnSQL, I'm a data engineer and I built SQL Dojo https://sqldojo.dev to practise SQL the way I wish I had learned it: lots of short steps, each one checked, with an explanation when you get it wrong.
What it looks like:
- Each step asks a question about a realistic dataset (an online shop, a SaaS, product events…) and checks your result.
- When it's wrong, it tells you how: too many rows, missing rows (and which ones), values that differ, and the likely cause, like a join that duplicates rows or a NULL hiding in a NOT IN.
- A "step by step" view runs your query one clause at a time, in the order the database actually runs it (FROM, then WHERE, then GROUP BY…). This is the thing that made SQL click for a lot of people I've taught.
- Spaced reviews bring back the steps you struggled with.
It runs in your browser: no install, no database to set up, no account needed to start.
The white belt (54 steps, about 3 hours, from your first SELECT to joins and GROUP BY) and the reference library are free. The later belts (window functions, CTEs, data modeling, interview runs) are a one-time payment, no subscription, and you don't need them to get value from the free part. There a also a practice section with real datasets.
I'd really like feedback from people learning right now: where did you get stuck, was an explanation unclear, is the pace right?