Top 5 SQL Games to Practice SQL Online (2026)

Top 5 SQL Games to Practice SQL Online (2026)

Learning SQL by playing works because a game makes you write queries, get them wrong and try again, which is exactly how the syntax sticks. Games also give you a goal: solve a case, finish a story, beat your record. This guide compares five free or freemium SQL games on price, sign-up, level and replay value, so you can pick the one that fits the way you like to learn.

Quick comparison

The 5 SQL games at a glance
#GameStylePriceSign-upLevelBest for
1SpeedQLTimed questions + daily exerciseFreeNoBeginner → advancedPracticing fast and often
2SQL Murder MysteryDetective case (one case)FreeNoBeginner → intermediateA first playful challenge
3SQL IslandText adventureFreeNoComplete beginnerDiscovering SQL from scratch
4SQL NoirDetective casesFreemium (first cases free)Not to startBeginner → intermediatePeople who love stories
5SQLZooInteractive tutorialsFreeNoBeginner → advancedStructured lessons

1. SpeedQL: timed SQL exercises for daily practice

At a glance

Timed questions and a daily exercise · free · no sign-up · beginner to advanced · French and English.

SpeedQL is built for repetition. A timed game starts with one minute on the clock and adds 30 seconds for every correct answer, with a new level every five correct answers, from simple filters up to window functions and recursive CTEs. Next to the timed game, you can practice chosen topics with no timer and with hints, or take the numbered daily exercise, the same for everyone. The question bank holds 376 hand-written questions and 100 templates with variables, covering 16 SQL topics described in the cheat sheet and 12 data themes. Every query runs in a SQLite engine inside your browser and is checked against a hidden dataset as well.

Strengths

  • Very high replay value: questions vary from one game to the next, and templates change their values each time.
  • You are writing your first query within seconds: no account, nothing to install.
  • Covers the whole range, from SELECT to window functions, in French and English.

Limits

  • No story or investigation mode: the fun comes from the clock and your record, not from a plot.
  • Progress is kept only in your browser: no account and no sync between devices (you can export it to a file).

Best for: practicing fast and often, a few minutes a day, and preparing for a technical interview.

Play SpeedQL

2. SQL Murder Mystery: solve a crime with queries

At a glance

Detective case · free · no sign-up · beginner to intermediate · content under a CC BY-SA licence.

Created at the Knight Lab of Northwestern University, SQL Murder Mystery drops you into a murder in SQL City. You investigate by querying the case’s database, following the clues from one table to the next. A tutorial walks complete beginners through the first steps, and the game runs on SQLite through sql.js, right in the browser.

Strengths

  • A real investigation that makes joins and filters feel meaningful.
  • A built-in tutorial for people who have never written SQL.
  • Free, with no account to create.

Limits

  • A single case: once it is solved, there is little reason to play again.
  • Less suited to regular, day-to-day practice.

Best for: a first playful challenge, alone or with friends.

Visit SQL Murder Mystery

3. SQL Island: a text adventure to learn SQL from zero

At a glance

Text adventure · free · no sign-up · complete beginner · several languages, including French.

SQL Island was created at the University of Kaiserslautern. You are shipwrecked on an island, and the story moves forward as you query tables about its villages, their inhabitants and their items. A built-in tutorial introduces each new keyword as the story needs it, and a sandbox mode lets you run your own queries freely.

Strengths

  • Probably the gentlest introduction: the story explains why you need each query.
  • Available in several languages, including French.
  • A sandbox mode to keep experimenting.

Limits

  • Mostly covers the basics: you will need something else for joins at scale, CTEs or window functions.
  • Like any story, it is meant to be played through once.

Best for: discovering SQL from scratch, with no pressure.

Visit SQL Island

4. SQL Noir: detective cases on realistic databases

At a glance

Detective cases · freemium · no sign-up to start · beginner to intermediate.

SQL Noir turns SQL into a series of detective cases built on realistic databases. Each case is a mystery you solve by querying the data. A few cases are free to play, and a paid licence, bought once, unlocks the rest. You can start without creating an account.

Strengths

  • Several cases, so more to play than a single mystery.
  • Realistic databases that feel close to real work.
  • No sign-up needed to try the first cases.

Limits

  • The full content is paid.
  • The story format suits people who enjoy reading case files more than quick drills.

Best for: people who love stories and want more than one case.

Visit SQL Noir

5. SQLZoo: interactive tutorials, chapter by chapter

At a glance

Interactive tutorials · free · no sign-up · beginner to advanced.

SQLZoo is a classic: a set of interactive tutorials organised in chapters, from SELECT basics to window functions. You learn one concept per chapter and practice it straight away by writing queries.

Strengths

  • A structured path from the basics to advanced topics.
  • Free and open to everyone, with no account.
  • Goes further than most games, up to window functions.

Limits

  • A course format rather than a game, with no story to follow.
  • You need some discipline to keep going on your own.

Best for: structured lessons, to learn in order.

Visit SQLZoo

How we ranked them

We tested each game on 23 September 2026 against six criteria: is it free, can you play without signing up, how replayable is it, how many SQL topics does it cover, how fast can you write your first query (under 10 seconds scores best), and is it available in both French and English.

SpeedQL comes first because it wins on replay value and on speed: new questions every game, a daily exercise, and a query to write as soon as the page opens. It also covers the whole range from SELECT to recursive CTEs, in both French and English. It does not win everywhere, though: SQL Murder Mystery, SQL Island and SQL Noir are far better at storytelling, and SQLZoo offers a more guided course. That is why the best choice depends on your profile.

Which SQL game should you choose?

  • You have never written SQL: start with SQL Island. The story introduces one keyword at a time and nothing is rushed.
  • You want a story: play SQL Murder Mystery for a single, memorable case, then SQL Noir if you want more cases and do not mind paying for the full set.
  • You prefer a real course: SQLZoo takes you chapter by chapter, from SELECT to window functions.
  • You want to practice every day and get faster: SpeedQL. A short timed game or the daily exercise keeps your SQL sharp, and the custom mode lets you drill the topics you find hardest.

These games work well together: many learners start with a story to get hooked, then switch to daily practice to make the syntax automatic.

FAQ about SQL games

What is the best game to learn SQL for free?

It depends on how you like to learn. For complete beginners, SQL Island is the gentlest start; for a story, SQL Murder Mystery; for daily practice and speed, SpeedQL. All three are free with no sign-up.

Can you learn SQL with games alone?

You can learn the essentials, because games make you write real queries. For a job, add some structured learning, such as a cheat sheet or tutorials, and practice on a real database of your own.

How long does it take to learn SQL?

The basics (filtering, sorting, grouping and joining tables) take a few weeks of regular practice. Advanced topics such as CTEs and window functions take longer. Short daily sessions work better than rare long ones.

Do these SQL games work on mobile?

SpeedQL works on phones and tablets, and its layout adapts to small screens, although typing SQL is easier with a physical keyboard. For the other games, it depends on each site: check on your device, and expect a keyboard to be more comfortable for any of them.

Ready to practice?

Your first timed SQL question is one click away: free, no sign-up, right in your browser.

Play SpeedQL