SQL games guide
The best SQL games to actually learn SQL, ranked.
Most SQL games leave you at joins. We played all eight and ranked them by the one thing that matters when you are trying to get hired: how far each one actually takes you.
We ran every game end to end, mapped which SQL concepts each one actually teaches, and scored them on five things. The ranking is below, then a full review of each. Full disclosure: we make one of these (Station Zero), and we say exactly where the others beat us.
The ranking
Eight games, tested live, sorted by how far each one takes you.
| # | Game | Best for | How far it takes you | Feedback | Path after |
|---|---|---|---|---|---|
| 1 | Station Zero Ours | Actually getting good | Recursive CTEs, window functions | Yes | Yes |
| 2 | SQLNoir | Polish and story | Joins, subqueries | No | No |
| 3 | SQL Murder Mystery | Your first hour | One join | No | Partial |
| 4 | SQL Case Files | Volume of practice | Window functions, CTEs | Partial | No |
| 5 | Lost at SQL | A charming sitting | Window functions | Yes | No |
| 6 | SQL Squid Game | A laugh, interview prep | Multi-step CTEs | No | Yes |
| 7 | SQL Police Department | Guided beginner drills | One join (paid) | Partial | No |
| 8 | SQL Island | Nostalgia, data-editing | Group-by, a join | Partial | No |
Honorable mentions, which are practice sets rather than games: Postgres Exercises, the only other free resource that reaches recursive CTEs and window functions (self-graded, no story), and GalaXQL, which teaches table-building and triggers while you reshape a 3D galaxy.
How we scored them
We weighted five things toward the one that decides whether a game makes you employable: how far it takes you.
- 01
How far it takes you. The concept ceiling. Does it stop at joins, or reach window functions and CTEs?
- 02
Real feedback. When your query is wrong, does it tell you why, or just say incorrect?
- 03
A path after. When the game ends, is there somewhere to keep building the skill?
- 04
Beginner-safe start. Can someone who has never written SQL actually begin?
- 05
Craft. Is it a made thing, with a world and a reason to keep going?
Every game, reviewed
1. Station Zero The one that takes you all the way
Best for: people who want a game that actually gets them to interview level.
You wake on a dying space station. The only thing online is CORA, the computer, and the only way to talk to it is SQL. Most SQL games leave you at joins. Station Zero starts you at your first SELECT and, across three acts, takes you through anti-joins, GROUP BY, HAVING, subqueries, and all the way to window functions and recursive CTEs, the advanced material that shows up in senior interviews. Of every game we tested, it is the only story-driven one that goes that far.
When your query is wrong, CORA tells you what is wrong and why, and the help escalates the more you are stuck. When the story ends, it opens into a full 66-concept path, so the game is your first rep, not the last thing you play.
Where others beat us. SQLNoir is more polished and SQL Case Files has more levels. Station Zero’s world is a story, not real company data, and it is SELECT-only, where SQL Island and GalaXQL teach data-editing and we do not.
Play Station Zero →2. SQLNoir The most polished game on the list
Best for: a beautiful, story-first detective game when you already have a little SQL.
Takes you through filtering, multi-table joins, and subqueries across six cases, and it is the best-made game here. It stops at intermediate: no window functions, no CTEs, and it never explains a wrong query. You run queries to surface clues, then submit the culprit and it is right or it is not.
Visit SQLNoir3. SQL Murder Mystery The classic first hour
Best for: your first taste of SQL, or a one-hour classroom activity.
The iconic on-ramp. You explore a database from scratch and query your way to a killer, which gives you the real feeling that querying is investigating. It only ever needs one join and a bit of filtering, gives no feedback, and once you solve it in about 45 minutes you are done.
Solve the mystery4. SQL Case Files The most levels, behind a name-gate
Best for: grinding a large volume of detective challenges with real depth.
About 100 levels on a real in-browser database, and it genuinely climbs, all the way to window functions and CTEs across its later seasons. It grades by matching your output and enforces column names, with light hints. It asks for a detective name before you can play.
Visit SQL Case Files5. Lost at SQL Charming, and the best at telling you why you are wrong
Best for: one relaxed sitting with real feedback.
A sinking-submarine text adventure that quietly goes further than it looks, reaching window functions inside multi-step queries. Its grader is the most helpful of any game here: it tells you which columns and rows are off, and tracks your time and mistakes as a score. It is a single thin experience with nowhere to go after.
Visit Lost at SQL6. SQL Squid Game The funny one that sells you a course
Best for: a laugh, and a nudge toward structured interview prep.
Nine levels of Squid Game parody that get surprisingly deep, with chained CTEs and correlated subqueries, but skip window functions. It grades by matching output with a plain Incorrect, no explanation, and level one is already hard for a true beginner. The smartest funnel in the category, straight into DataLemur’s tutorials.
Play SQL Squid Game7. SQL Police Department Clean drills, but paid and not a real database
Best for: guided, click-to-build beginner practice.
Introduces filtering, sorting, and eventually one join at a steady pace with helpful nudges like asking whether you used DISTINCT. Two catches: most of it is behind a paywall, and it runs a homemade SQL engine rather than a real database, so it never goes past a single INNER JOIN.
Visit SQL Police Department8. SQL Island The original, and the only one that teaches data-editing
Best for: nostalgia, and learning to change data, not just read it.
Crash-land and use SQL to survive. Alone among these games it teaches INSERT, UPDATE, and DELETE, and you literally delete the villains to win, alongside filtering, grouping, and a join. It runs real SQL and advances the story when your result is right. It shows its age and tops out at group-by.
Visit SQL IslandWhich SQL game should you play?
- Never written SQL SQL Murder Mystery for the spark, then Station Zero to build the skill.
- Want the most beautiful experience SQLNoir.
- Prepping for an analyst or data interview Station Zero to learn, SQL Squid Game and DataLemur to pressure-test.
- Want to go the deepest in an actual game Station Zero, or Postgres Exercises if you will tolerate a plain exercise list.
Are SQL games actually a good way to learn?
Yes, with one condition. A game gets you writing real queries for a reason, which beats dry exercises on fake data. But most SQL games stop at fun. They leave you at joins, never explain a wrong query, and end after one story. The ones that make you good are the ones that go deep, tell you why you were wrong, and give you a path to keep climbing.
SQL games FAQ
What is the best free SQL game?
All the games above are free to play, and SQL Police Department is paid past a short trial. For a first taste, SQL Murder Mystery. To go the furthest, Station Zero.
What are the best SQL games for beginners?
SQL Murder Mystery, SQLNoir, and Station Zero all start gently and assume no prior SQL.
Can you learn SQL by playing games?
Yes, if the game gives feedback and takes you past the basics. Games that only quiz you are fun but forgettable.
Do these run in the browser with no install?
Yes, every game here runs in your browser, no download, no account required to start.
The verdict
Most of these games are worth an evening. Station Zero is the one built to take you all the way.
It starts at your first SELECT and goes to window functions and recursive CTEs. Free, no signup, runs in your browser.
Play Station Zero, free