SQL exercises
Practice SQL right in your browser — every query runs locally, nothing leaves the page.
New here? Three things worth knowing
- Run executes your SQL and shows the rows — experiment freely, it never counts against you. If what you ran already answers the task, it counts as solved without a separate Submit.
- A wrong Submit is not wasted: it builds your review queue and your weak-spot stats, and after three the reference solution and the side-by-side comparison unlock. Hints are always available — you never have to earn them.
- Exercises come in two tracks — query practice, where you write SQL, and theory questions, which are multiple choice. Switch between them just below.
Press ? at any time for the keyboard shortcuts.
↻ Review what you got wrong
Show
Difficulty
Categories