
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Reading about SQL only gets you so far. You get better by writing queries, getting them wrong, and seeing exactly why. Interviews work the same way: an interviewer hands you a table and a question, and you need to write the query and explain it at the same time.
This course is 420 hands-on SQL coding exercises arranged in 21 levels, plus 20 interview role plays and short introductory lectures. Each level focuses on one skill and builds on the one before it, so you can start at the beginning or jump to the level that matches where you are. Every exercise runs in your browser and is checked automatically, so you know straight away whether your query returns the right result.
The 21 levels
Practice explaining your queries
The role plays put you in interview-style conversations where you talk through a query, justify a join or window function, and respond to follow-up questions. Many candidates can write the SQL but struggle to explain it clearly, and these give you a way to practice that part.
How to use the course
If you're new to SQL, work through the levels in order and don't skip the early ones, since NULLs and grouping catch out experienced people too. If you're preparing for an interview, start around level 13 and spend most of your time in levels 15 to 21. Try each exercise before looking at hints, and redo the ones you miss the next day.
Who it's for
Beginners who want to learn SQL by doing, data analysts and aspiring analysts, software developers who need stronger SQL, and anyone preparing for a SQL interview round. No prior SQL is required to start at level 1.
What you need
A browser. All exercises run in the course's built-in editor, so there's nothing to install.