Learn by playing
Complete missions with real SQL in Arcane Academy, Mission Cosmos or District 404. Your progress is shared across all three worlds.
Start SQL QuestPick a challenge, write your query and check the result. From your first SELECT to a complete project.
We may earn a commission if you purchase through these links. Details
If you are just starting, practise with the first lesson.
Work with StoreSQL: customers, products and orders. Solve twenty challenges of increasing difficulty and compare your answer with an explained solution.
Which active customers live in London?
SELECT name, city
FROM customers
WHERE city = 'London'
AND active = 1
ORDER BY name;| name | city |
|---|---|
| Amy Wilson | London |
| Megan Reed | London |
| Nia Smith | London |
Jump into a SQL Quest mission without affecting your progress on your main path.
The goal: understand why your query answers the question.
Pin down one skill and the result you want to get.
Work out which columns and rows should appear.
Run it, compare and explain any differences.
Change one condition and predict what will change.
Download the teaching database as SQL or SQLite and keep practising in your own environment. It includes fictional shop, employee and library data.
customers · orders · products · payments
employees · departments · managers
authors · books · loans
Supporting material with examples run on the same practice database.
The syntax people look up most, grouped by task, each with an example you can run in the SQL editor on the StoreSQL database.
Ten exercises on JOIN, GROUP BY and HAVING, each with the solution, the output it really produces and the mistake people make most often.
The SQL questions that come up most in technical interviews, each with an answer you can explain out loud and a worked example where it helps.
SQL reads almost like an English statement, and so do its errors and its documentation. Learn to read them with a handful of words and a simple method.