Back to articles list Articles Cookbook
4 minutes read

5 Games to Learn SQL

Learning SQL doesn’t have to be boring! In this article, I’ve rounded up some awesome SQL games that turn practice into an adventure. From solving crimes to escaping islands, there’s something fun waiting for everyone.

Do you want to learn SQL in an interactive and fun way? We have compiled a list of 5 immersive SQL games that will help you master SQL using engaging stories. The in-game exercises range from basic SELECT statements to complex reports with common table expressions (CTEs) and window functions. You will surely find some practice for your skill level!

If you want to tackle the full scope of SQL, take a look at our SQL Basics course. It has more than 120 interactive exercises to help you understand SQL fundamentals and get comfortable working with them. With that being said, let’s dig straight into our list of SQL games.

Our 5 Top SQL Games

1. SQLPD

Games to Learn SQL

Play the game at SQL Police Department.

In this game, the SQL Police Department hires you as a data analyst in the local police force. You will use your SQL skills to analyze illegal information leaks and criminal databases, helping find the necessary data to bring responsible people to justice. You will progressively solve different cases.

Each case includes a simple SQL problem that you can solve by building queries using the provided blocks. If you get stuck, the game also includes a guide that you can access at any time.

2. SQL Island

Games to Learn SQL

Play the game at SQL Island.

You have survived a plane crash and are now stranded on an island. You will have to use your SQL skills to survive! Become a part of a village, find a job, and plan your escape.

Note: The original version of the game is in German. From the hamburger menu icon on the left, choose Change Language to play the game in English (or any of the 5 supported languages).

This game is designed so that it teaches you the basics of SQL. In each task, you’re given an example and an explanation. Then you have to write your own query to progress in the game.

3. SQL Murder Mystery

Games to Learn SQL

Play the game at The SQL Murder Mystery.

Ready to solve a murder? This popular SQL game has two modes: a guided version for people who are unfamiliar with SQL and a much harder version with no hints. There is no linear path to follow. You have to explore the database on your own with SQL queries. As you do, you will discover clues that identify the murderer. You have to be creative with how you choose to handle the data. Will you be able to solve the murder and find the mastermind behind it?

This game’s story is convoluted, so you might want to keep our SQL Basic Cheat Sheet at hand.

4. Lost at SQL

Games to Learn SQL

Play the game at Lost at SQL.

In Lost at Sea, you are a captain of a submarine that has sustained several catastrophic failures. Your crew is thin and you need to find whoever’s left and repair the sinking sub! Each task is accompanied by a chapter of the story; you will have to use your SQL knowledge to move forward.

Will you be able to power through the harsh environment and return to the surface?

5. SQL Squid Game

Games to Learn SQL

Play the game at SQL Squid Game.

You’ve been hired by the Front Man to do some data analysis after a freshly finished first round of the games. Solve every problem correctly to avoid meeting the same fate as the last data scientist. The game is mostly text-based, with the tasks themed around specific games appearing in the series.

Find the most suitable players for the game, calculate rations, and find the culprit behind the VIP’s murder!

 

Beyond SQL Games: More Practice Resources

These games are a great way to learn SQL, but they’re just the start! In our Monthly SQL Challenges track, we drop a brand-new SQL interactive course every month to keep you on your toes.

Snowflake

These challenges are designed to help you tackle real-world problems and level up your skills with a variety of scenarios—from data analysis to advanced reporting. It’s like having a regular SQL workout plan! Plus, you can use a free trial to try it out – and no credit card is required when creating a free account at LearnSQL.com.

And if you’re hungry for even more tips and tricks, check out our guide on the Best Way to Learn SQL. Happy practicing!