SQL Quest · 30 levels

Learn SQL by solving quests.

Write real queries, get instant feedback and go at your own pace. No lives, no timers and no clutter.

We may earn a commission if you purchase through these links. Details

Your progress 1 / 30
0 %
WorldNot chosen
Progress StageFirst queries XP0
Choose your world to get started

Choose the setting for the missions

The difficulty and progress are the same. Only the story and the data change.

Path

30 missions. One skill at a time.

Complete a mission to unlock the next one.

Learn as you practise

How SQL Quest works

Each level gives you a question and the tables you need to answer it. Write a query, press Run query and compare the result with the target. You can try as many times as you like, check a hint or open the explained solution if you get stuck.

You start with SELECT and FROM. Then you practise filters with WHERE, summaries with COUNT and GROUP BY, relationships with JOIN and more advanced queries with CTEs and window functions. There are 30 missions spread across six stages.

Your progress is saved in this browser: you don't need to sign up and you can carry on another day. The three worlds have the same difficulty; only the story and the data change. If you need to go over a concept again, each mission links to the matching lesson in the free SQL course.

Mission Complete

Level complete!

1 / 30Levels
0XP
In progressStage