November 13, 2026
A warning before you start: I made one of the games on this list. It is at the end, with its drawbacks like the others, and if you finish reading and pick a different one, the list did its job.
Most "best SQL games" pages tell you the games are fun. Fewer tell you the three things you need before you click: what it costs, whether it asks for an account, and whether it is for your first afternoon with SQL or for someone who already knows what a JOIN does. That is what the table is for.
Lee esto en español: Juegos para aprender SQL en 2026.
Prices and facts checked on each game's own site or store page on November 13, 2026. Prices are what changes most, so check them again before you buy.
| Game | Price | Account? | How you answer | Good for |
|---|---|---|---|---|
| SQL Murder Mystery | Free | No | You type SQL | Your first afternoon with SQL |
| SQL Island | Free | No | You type SQL | Starting from zero |
| Select Star SQL | Free | No | You type SQL | A guided tutorial on real data |
| SQL Noir | 3 cases free, the rest with a one-time license | Optional | You type SQL | Detective cases, beginner to intermediate |
| SQL Squid Game | Free | Not to start | You type SQL | Interview practice |
| SQL Police Department | A few cases free, then 20 USD (license lasts about 6 months) | Yes, for the full game | You type SQL | Detective cases with ranks |
| Lost at SQL | Free | No | You type SQL | The basics, with a story |
| Station Zero | Free | No | You type SQL | A story that goes up to recursive CTEs |
| Query the Murder | Free | No | You type SQL | Short classic whodunits |
| Database Detective | 14.99 USD on Steam (free demo) | Steam account | You type SQL | Playing on PC like a regular game |
| Query Noir | 4.99 USD on Steam | Steam account | You build queries from blocks | Detective stories without typing |
| Caso Abierto | First two cases free, full game 9.99 USD | No | You type SQL | Detective cases, intermediate level |
SQL Murder Mystery. The classic, made by the Knight Lab at Northwestern University. You get the database of a police department and a murder, and you solve it with SELECT and JOIN. It is a single mystery and you can finish it in an afternoon, which is what you want from a first game. The code is open (MIT license) and it runs in the browser.
SQL Island. A text adventure where you survive a plane crash and get off the island by writing queries. It comes from the University of Kaiserslautern and you can switch the language at the top: German, English, Spanish, Portuguese, French or Hungarian. If you are recommending a game to someone who has never written SQL, this is the first one.
Select Star SQL. More tutorial than game, and a good one. Five chapters on one real dataset, with no ads and no registration. The subject is not light: executions in Texas, from the last statements of the inmates onward. It has translations into Spanish, French, Italian, Dutch, Hebrew and Brazilian Portuguese.
Lost at SQL. A story at sea by Robin Lord, built to teach the basics so you can pull information out of a database yourself. It is free and runs in the browser.
SQL Noir. A 1980s detective agency, nicely done, with the code on GitHub. There are six cases. Three are free and need no account; the rest unlock with a one-time license, not a subscription. The price is shown when you go to buy it, so look before you decide. It runs SQL.js in the browser, and the interface is in English, Portuguese and Chinese.
SQL Police Department. You close cases and climb the ranks. You can try a few cases for free. The full game costs 20 USD, and the license lasts about six months, which is worth knowing before you pay.
Query the Murder. Free and in the browser. Eighteen cases based on Agatha Christie novels, each one with five SQL questions.
Database Detective: Minor Crimes Division. The most "video game" entry here. It came out on Steam in July 2026, costs 14.99 USD and has ten cases. There is a free demo, so you can try it first. English only.
Query Noir. Also on Steam, released in September 2026, 4.99 USD. You build each query from blocks, so you do not type SQL. That makes it a different thing from the rest of this list: good if the syntax is what stops you, less useful if writing queries is the skill you are after. It is one of the few here with a Spanish version.
SQL Squid Game. From DataLemur, inspired by the series. Nine free levels in PostgreSQL with the kind of question you get in a data analyst interview.
Station Zero. From SQLMaxx. You wake up on a failing space station and SQL is the only way to talk to the computer. It is free, runs on a real Postgres database, needs no account and goes from SELECT to recursive CTEs over three acts.
It is a detective game where every case is a small database and the only tool is a SQL console. What makes it different is that naming the culprit is not enough to close a case: you hand in the query that proves it, and if the answer is typed into the query by hand, the game rejects it. It has to come out of the data.
The traps have more to do with data than with syntax. The typical one is a JOIN that doubles a total without anyone noticing, or a date that lands on the other side of midnight because of the time zone.
It is complete in English and Spanish. The first two cases play free in the browser, with no account: casoabiertogame.com
Its drawbacks, to be fair:
If you want a longer list, SQLMaxx keeps a directory of 39 SQL games, including phone apps and games in other languages.
If you know one that is missing, write to me through the game's page on itch.io and I will add it.
The first two cases play free in your browser, no signup.
Play the first two cases free →