The Best SQL Games to Learn SQL
8 SQL games compared: what each one teaches, who it suits and what it costs.
Last checked: November 2026
- SQL games teach you to write real queries by giving you a story to solve
- 7 of the 8 games below run in a browser with nothing to install
- Most are free
- Short on time? Use the table, then jump to the game that fits your level
Honest note: we make Query the Murder, the first game on this list. We have tried to describe the other seven fairly and we link to every one of them.
SQL games compared
| Game | Story | Level | Cost | Good to know |
|---|---|---|---|---|
| Query the Murder | 18 Agatha Christie murder cases | Beginner to advanced | Free | No signup. Laptop or desktop only |
| SQL Murder Mystery | One murder in SQL City | Beginner to intermediate | Free | Has a walkthrough for first timers |
| SQL Island | Escape an island after a plane crash | Beginner | Free | Opens in German. Switch to English in the menu |
| SQL Noir | Detective agency case files | Beginner to advanced | Free | Open source |
| SQL Police Department | Short police cases | Beginner | Some cases free, the rest paid | Built in reference guide |
| Lost at SQL | Story told in chapters | Beginner | See site | Each chapter has a Learn button |
| SQL Squid Game | Data scientist inside the Squid Game | Beginner to intermediate | Free | 9 levels in PostgreSQL |
| Schemaverse | Space strategy against other players | Advanced | Free | Needs an account and your own PostgreSQL client |
The 8 games in detail
1. Query the Murder
- What it is: 18 murder cases based on Agatha Christie novels. Each case has 5 questions that you answer with SQL
- What you practise: SELECT and WHERE in the early cases, then JOINs, GROUP BY, subqueries, CTEs and window functions
- Best for: anyone who wants more than one mystery. The cases get harder as you go
- Skip if: you only have a phone. It needs a laptop or desktop
2. SQL Murder Mystery
- What it is: the classic from Northwestern University's Knight Lab. A murder happened in SQL City and you find the killer by querying the police database
- What you practise: filtering, JOINs and reading a schema you have never seen before
- Best for: a first SQL game. It takes an evening and the walkthrough helps if you are new
- Skip if: you want lots of content. It is one mystery
3. SQL Island
- What it is: a text adventure. You survive a plane crash and the islanders only respond to SQL
- What you practise: the basics, one small step at a time
- Best for: complete beginners who want a gentle start
- Skip if: you already know JOINs well. You will finish it fast
4. SQL Noir
- What it is: a detective game where you solve cases by checking records and alibis with SQL
- What you practise: queries that grow from simple lookups to harder multi-table work
- Best for: players who liked SQL Murder Mystery and want more cases in the same spirit
- Skip if: crime stories are not your thing
5. SQL Police Department
- What it is: you work as a data analyst for a police force and each case is a short brief
- What you practise: core query skills in small pieces
- Best for: beginners who like quick wins
- Skip if: you want everything free. Only some cases are
6. Lost at SQL
- What it is: a story game by Robin Lord that teaches SQL chapter by chapter
- What you practise: basic queries first, then harder challenges
- Best for: learners who want the concept explained before each puzzle
- Skip if: you would rather work things out with no hints
7. SQL Squid Game
- What it is: a 9 level game from DataLemur. You are a data scientist working for the Front Man
- What you practise: PostgreSQL queries in the style of data interview questions
- Best for: people preparing for analyst or data science interviews
- Skip if: you have never written a query. Start with an easier game
8. Schemaverse
- What it is: a space strategy game played entirely inside a PostgreSQL database. You command a fleet with SQL
- What you practise: advanced SQL and scripting against real opponents
- Best for: experienced users who want a challenge
- Setup: the only game here that does not run in a browser. You sign up and connect with a PostgreSQL client such as psql
- Skip if: you are still learning the basics
Which SQL game should you start with?
- Never written SQL: SQL Island or Case 1 of Query the Murder
- Know SELECT and WHERE: SQL Murder Mystery, then SQL Noir or Query the Murder for more cases
- Getting ready for interviews: SQL Squid Game and the harder Query the Murder cases
- Already good at SQL: Schemaverse
- Teaching a class: pick a free game with no signup so students can start in one click. See our page for teachers
Do SQL games really teach SQL?
- Yes for practice. You write real queries and see real results
- A story gives you a reason to finish, which is where most courses lose people
- Games do not cover everything. Add a reference or a course for topics like database design
- A good mix: learn a concept, then play a case that uses it. Our SQL learning roadmap shows the order
Frequently asked questions
What is the best SQL game for beginners?
SQL Island is the gentlest start. SQL Murder Mystery and the first cases of Query the Murder are the next step up.
Are SQL games free?
Most are. SQL Police Department gives you some cases free and charges for the rest.
Do I need to install a database?
Not for 7 of the 8, which run in a browser. Schemaverse is the exception: you sign up and connect to its database with your own PostgreSQL client.
What should I play after SQL Murder Mystery?
Try a game with more cases in the same detective style, like SQL Noir or the 18 cases in Query the Murder.