Inspired by @veltman's command-line mystery, use SQL to research clues and find out whodunit!
Go to file
2018-03-08 19:01:06 -06:00
cheatsheet.pdf Update README and add cheatsheet and prompts 2018-03-08 19:01:06 -06:00
LICENSE Create LICENSE 2018-01-17 10:26:09 -06:00
prompt_beginner.pdf Update README and add cheatsheet and prompts 2018-03-08 19:01:06 -06:00
prompt_experienced.pdf Update README and add cheatsheet and prompts 2018-03-08 19:01:06 -06:00
README.md Update README and add cheatsheet and prompts 2018-03-08 19:01:06 -06:00
sql-murder-mystery.db Add README and db file 2018-03-07 14:23:01 -06:00

#SQL Murder Mystery

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.

##What You Need

  • sql-murder-mystery.db: This SQLite database file contains all the data that you will be working with.
  • prompt: Depending on your experience level with SQL, find the prompt in either the prompt_experienced file or the prompt_beginner file.
  • cheatsheet: This is a crash course on SQL concepts and commands.
  • a SQLite environment of your choice: For beginners, we recommend using the SQLiteStudio, which is a good graphical interface to use to inspect your data and write queries.

##Getting Started

  • For experienced SQL users: read the prompt_experienced file, then download the sql-murder-mystery.db file and use a SQL environment of your choice to solve the mystery. You can use the cheatsheet to refresh your memory on SQL. Try to complete the activity all within your SQL environment (without writing down notes)!

  • For SQL beginners: start with the cheatsheet, read the prompt_beginner file, then download the sql-murder-mystery.db file and load it in SQLiteStudio. If you get stuck at any point, feel free to refer back to the cheatsheet.

##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 Joon Park

Cathy He

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