Queries and filters
SELECT, WHERE, operators, NULL, sorting and removing duplicates, with small examples that show which rows get in and why.
Understand each concept, write queries and check your results across 52 lessons with an interactive SQL lab.
We may earn a commission if you purchase through these links. Details
SELECT name, city
FROM customers
WHERE city = 'London';Each lesson explains a concept, shows it with data and ends with a query you can run and correct.
First you see which problem it solves and what changes in the data.
You read a query step by step and compare the result.
You practise with a database inside your browser.
You can open hints, make corrections and try again with no penalty.
Choose Arcane Academy, Mission Cosmos or District 404 and complete 30 missions with real queries. Your progress carries over even if you switch worlds.
An SQL course from beginner to advanced: 52 lessons in 9 modules, each with exercises you run in your browser. Follow it in order from scratch or open only the topic you need.
SELECT, WHERE, operators, NULL, sorting and removing duplicates, with small examples that show which rows get in and why.
COUNT, SUM, GROUP BY, HAVING and JOIN, explained with results you can check, so you avoid cardinality mistakes and misplaced filters.
Subqueries, CTEs, set operations, CASE, text functions, dates, views and window functions, with compatibility notes.
INSERT, UPDATE, DELETE, transactions, CREATE TABLE, keys, constraints, ALTER TABLE and an introduction to performance and indexes.
The 9 modules: Orientation, Selecting data, Filtering data, Sorting and summarising, Relating tables, Advanced queries, Modifying data, Designing tables, Putting it together.
See the full SQL course syllabus. There is nothing to install and no sign-up. The course does not issue a certificate: it is designed for learning and practice.
Lessons to learn step by step, reference pages that answer one specific question, and common errors with their fixes.
The lessons are written to teach a specific decision, not to repeat the documentation. The examples are checked against the expected behaviour, and when the syntax differs between PostgreSQL, MySQL, SQL Server or SQLite, we say so explicitly.
The lab runs on made-up data inside your browser and saves your progress locally. You do not need an account to read the lessons or to practise.
If you spot a mistake, you can report it through our contact channel and read our corrections policy.