SQL Murder mystery is a project by Knight Lab team. Which focusses on using SQL Queries to solve a case which involves in finding the killer behind a murder crime.
This blog walks through the approach i did in order to find the killer behind this murder.
So this is the Schema Diagram of the given tables, which we should use to figure out the killer.
- get_fit_now_check_in - this table gives information about checkin details of each member of the gym
- get_fit_now_member - this table contains information about the general details of a member of the gym
- person - this table contains information about the address details of the person
- drivers_license - this table contains information about the vehicle used by the person
- interview - this table contains the information regarding what the person revealed during the interview with the detectives
- facebook_event_checkin - this table contains information about the events the person attended and uploaded about on facebook
- crime_scene_report - this table provides overall information about the crime
- income - this table gives income of each person
- solution - this table contains the answer using which we should cross-check later
The Given clue was - The detective gave you the crime scene report, but you somehow lost it. You vaguely remember that the crime was a murder that occurred sometime on Jan 15 2018 and that it took place in SQL city.
Using the clues that is given, we know the details about place,crime and date. Hence on querying the crime_scene_report table,
we get details about 2 witnesses. Let's split further approach into 2 witnesses.
As we can get name and id and other details of this witness, we next can query and see what his interview was.
- The membership number on the bag started with "48Z" (only gold members)
- The man got into a car with a plate that included "H42W"
- Also that man had a "Get fit now" gym bag
WITNESS - 2
- Name is Annabel
- Lives at Franklin Avenue
On querying and finding what she had said in her interview, we find that
- The killer was from her gym
- She saw him during her time at gym on Jan 9 th
Using above query, we found out the check_in and check_out time of Annabel on Jan 9, 2018.
Now we need to find out the names of people who were inside the gym during that same time.We have narrowed it down to 2 Suspects from Annabel witness, hence on examining the evidence from witness 1 and querying we get
Thus we find out that the killer is Jeremy Bowers, which we now have to cross-check with the solution.
The killer has been figured out, but here is a twist, the result is prompting us to read the interview of the killer.
- Rich woman
- Red hair
- Height around 5'5 to 5'7
- Drives Tesla Model S
- Attended SQL Symphony concert 3 times in Dec 2007
Comments
Post a Comment