Home

Awesome

SQL Murder Mystery

Illustration of a detective looking at evidence

There's been a Murder in SQL City! The SQL Murder Mystery is designed to be both a self-directed lesson to learn SQL concepts and commands and a fun game for experienced SQL users to solve an intriguing crime.

If you just want to solve the mystery, go to mystery.knightlab.com. If you're new to SQL, you may want to start at our walkthrough. It won't teach you everything about SQL, but it should teach you all that you need to solve the mystery.

What Else is Here?

Before we built the web-based version, we designed this for people to download and solve on their own computer. If you're interested in that, read on.

What you need to solve on your own computer

Getting Started

Checking the Solution

Write the following queries in your SQL environment to check whether you've found the right murderer:

INSERT INTO solution VALUES (1, "Insert the name of the person you found here");

SELECT value FROM solution;

Authors

Inspiration

This murder mystery was inspired by a crime in the neighboring Terminal City.

Copyright and License

Original code for this project is released under the MIT License.

Original text and other content is released under Creative Commons CC BY-SA 4.0.

SQL query custom web components used here were adapted from code created and released to the public domain by Zi Chong Kao, creator of Select Star SQL.

Detective image by rambleron used under Vecteezy's free license.