Lurker News
I built SQL Noir, an interactive detective game that challenges you to solve mysteries using real SQL queries. It’s fully open source, designed to give you a practical and immersive way to learn SQL while engaging with a narrative-driven mystery.

Comments (85) 41 threads

Earlier comments
haliskerbas1 reply#
I just shared this with folks, it looks incredible! I’m giving it a try myself too.

By the way, I was trying to use a bunch of one-liner SQL statements to explore the data, and it seems like the editor doesn’t handle comments very well. Is there a way to make it work better?

chrisBHappy#
Yep, comments are broken. Currently working on a fix.
hinkley#
Feature request:

Badges for completing challenges.
Issue Closed, Won’t Fix.
Badges?? We don’t need no stinking badges!

hotfrost1 reply#
I'm a big SQL noob, so I barely know what I'm doing, but... I managed to crash both Firefox and Edge whenever I ran this query:

  select * from crime_scene, suspects
mhuffman#
>select * from crime_scene, suspects

This is a cross-join. It is the equivalent of a nested loop in programing and almost never what you want to do in a database unless you like watching high-combination data spewing out and CPUs burning. It gives you every combination of items in each table you name.
What you want is to find something in two or more of those tables that can be linked together somehow using (very likely!) "INNER JOINS". Look into examples or tutorials of those on the internet and use what you find to work through the tables on the "investigations". Luckily, the SQL Noir site tells you exactly the steps to take in the first case. You need to find a link somehow between the crime_scene and suspects tables and then another one between the matching suspects from the suspects table and the interviews table.
Note: there is no direct easy link between the crime_scene and suspects tables. You will have to use your investigation skills to trim the suspects list down.

scns#
Great fun, thank you for building this! Was confused since submitting the confession didn't work, would make sense to ask for the name of the person no?

Load more comments