r/SQL • u/Sensitive-Try-9603 • Jun 18 '26
Discussion Built a SQL mystery game - can you query the killer?
Solve murders. Master SQL. One query at a time.
Agatha Christie cases. Real suspects. Live SQLite database. You write the queries, you catch the killer.
SELECT s.name, a.location
FROM suspects s
JOIN alibis a ON s.suspect_id = a.suspect_id
WHERE a.time_from <= '23:00'
AND a.location != 'Cabin'
ORDER BY s.name;That's the kind of query standing between you and the murderer.
No signup. Runs in the browser. → querythemurder.com
Feedback: querythemurder@gmail.com
55
Upvotes
2
u/lemeiux1 Jun 18 '26
Cool I’ll give it a shot
2
u/ikkekun Jun 18 '26
its cool but i hope there is a button where i can see the table given again because i forgot what in table. like a history to visit previous answer
1
u/Maria-Dev69 Jun 18 '26
Esta muy cool
1
u/SupaStarStatus Jun 19 '26
Did the first case and would agree with the other commentor where I tried SELECT * immediately and was told it was wrong. Once I got past that, it was quite enjoyable.
Trying case 3 now and having trouble progressing as the submit button isn't doing anything?
1
u/jezolll Jun 19 '26
Case 16 - Q3 is bugged, even if you copy and paste the answer.
1
u/Yavuz_Selim Jun 18 '26
What I always find interesting is that these kinds of games never mention which flavour of SQL they are using.
I clicked on the last game, Murder is Easy (hardest, case 17).
And revealed the answer, and saw this:
ORDER BY location NULLS LAST, nameI have no idea what
NULLS LASTis, or does.I am more familiar to T-SQL, so I didn't recognize it.
NULLS LAST wasn't part of the ANSI standard, and as it got added later, some flavors just preferred their own methods.
So, PostgreSQL does support it for example, but MySQL/MariaDB and T-SQL don't.
So, my feedback is: you mentioned "SQLite", and that gives some context to what is supported. I would suggest adding that to the website.
1
u/philodelphi Jun 18 '26
It isn't really doable on my Android phone but I will give it a try on my PC.
3
u/[deleted] Jun 18 '26
[removed] — view removed comment