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
wbakst2 replies#
Love this! The style is unique and awesome.

I see the beginnings of a really fun way to learn / practice / remember SQL.
A few notes:
- Would be cool if it was a single workspace (no tabs). Was constantly switching tabs back and forth.
- Saving previous SQL queries and results would be cool. I was copying results into the notes. Feel like this is important as things get more complex.
Excited to see where you take this!

dylan6041 reply#
> - Saving previous SQL queries and results would be cool. I was copying results into the notes. Feel like this is important as things get more complex.

I imagined myself with my flip notepad at the crime scene taking notes every time I'd copy queries/results to the notepad section. All I needed was a hat, and then say "just the facts, ma'am" a couple of times.

wbakst#
I like that way of thinking about it!
chrisBHappy1 reply#
Good notes indeed. I have just implemented a side by side view so that you can view 2 tabs at once. I hope this helps. Also as other users suggested you can use the notes for saving queries but you can also comment them out in the editor.
wbakst#
I love the updates! Side-by-side is great, the graph view is great. Awesome stuff! Thanks for sharing.
fodkodrasz3 replies#
The idea is good, but the UI is all but immersive.

Things that would it make more immersive:
- autocomplete
- and/or the ability to view the schema alongside the query (on a wide enough screen)
- a way to copy table and column names easily with a click (table names cannot be selected at all!)
- ability to just add more queryies under/over the already executed ones, instead of only being able to replace them.

tiu#
Agree with all but autocomplete should either be a hidden feature or disabled by default since I think it takes away from the immersion as well forces you to recall.

Maybe enabled on a NG+?

jkubicek#
Commenting out blocks of code with command-/ would be super useful as well
chrisBHappy1 reply#
Thank you for the suggestions. I have just implemented the following: - Side by Side view to open up two different tabs at the same time - Copy button to copy table names
fodkodrasz#
Great job! I'm happy if I could provide useful feedback. I wish you luck, this is a fun learning tool!
8mobile#
Wow what a great idea, I had fun solving the cases. I think maybe a comic version would help junior programmers. The SQL editor sometimes behaves strangely and does not allow correct writing. Thanks
kaeruct1 reply#
The editor behaves weirdly when I try to add comments.

It's hard to explain, but you can reproduce like this:
1. Write several lines, for example:

  select i.*, s.*
  from interviews i
  join suspects s
  on s.id = i.suspect_id

2. Try to comment each line on its own by typing -- in front of each line.

  -- select i.*, s.*
  from interviews i
  join suspects s
  on s.id = i.suspect_id



  -- select i.*, s.*
  -- from interviews i
  join suspects s
  on s.id = i.suspect_id

3. As soon as you do it for "from interviews i", that line will move itself to the previous line, and the syntax highlighting will be broken
chrisBHappy#
Indeed. I think I just fixed this bug.

Load more comments