265
SQL Noir (www.sqlnoir.com)

Solve mysteries through SQL.

all 20 comments
sorted by: hot top new old
[-] em2@lemmy.ml 87 points 2 years ago
[-] Aurenkin@sh.itjust.works 33 points 2 years ago
[-] killeronthecorner@lemmy.world 32 points 2 years ago
SELECT few FROM people WHERE gets_joke = 1
[-] x00z@lemmy.world 5 points 2 years ago

What would my few say?

[-] SlapnutsGT@lemmy.world 14 points 2 years ago

I’m a rebel. I write all my sql in lowercase

[-] shasta@lemm.ee 3 points 2 years ago

Yeah we have IDEs to color keywords for us these days. Caps is just extra work

[-] diemartin@sh.itjust.works 7 points 2 years ago

Capital letters are bigger, thus they use bigger bytes and use too much disk space and memory. That's why most programming languages use lowercase, and why the most common loop variable is i.

[-] anzo@programming.dev 2 points 2 years ago

And why untyped languages are better at managing memory too. Less characters ftw!

[-] ichbean@lemm.ee 36 points 2 years ago* (last edited 2 years ago)

If you're new to SQL there's interactive Select Star SQL tutorial. And there's another detective — SQL Murder Mystery

[-] JoeBigelow@lemmy.ca 8 points 2 years ago

I know what I'm doing at work today

[-] AnarchistArtificer@slrpnk.net 2 points 2 years ago

My gosh, these are incredible. Thank you for sharing them. I cried at Select Star; that is legitimate art.

[-] tpyo@lemmy.world 2 points 2 years ago

I have some time to kill before having to run some errands. I've started with the first one and it's pretty fun!

Said "fuck yeah" a couple times to myself when I got the answer right. I've not used SQL before but I've got a decent grasp (as in I get the basics) on programming languages so it's somewhat intuitive to me

Thanks for the links!! I look forward to continuing when I get back

[-] pruwybn@discuss.tchncs.de 10 points 2 years ago* (last edited 2 years ago)

I tried to hit F5 to run a query and it refreshed the page lol

edit: I'm also slightly annoyed that the table names are a mix of singular and plural

[-] nebeker@programming.dev 3 points 2 years ago

That totally threw me off. “Literally unplayable,” as they say.

[-] omgitsaheadcrab@sh.itjust.works 6 points 2 years ago
[-] recursiveInsurgent@lemm.ee 3 points 2 years ago

This seems like it was made specifically for me and my interests.

[-] dreugeworst@lemmy.ml 2 points 2 years ago

seems like there's an issue with case 3. the person_id and from surveillance_records doesn't match up with the person_id in the hotel_checkins table when joined on hotel-checkin_id

[-] Redkey@programming.dev 1 points 2 years ago

Yep, surveillance_records.person_id is the same as surveillance_records.id, which is incorrect. I looked at the Github repo and there's already a report for it.

What I don't understand (and apparently this is my problem, not a bug) is how we're supposed to narrow the list down to three suspects in the next-to-last step, as the "Case Solved" text describes (Yeah, I cheated). The interviews with the two witnesses give a partial hotel name and a check-in date, but that returns dozens of results. The ending messsge congratulates us for reducing that list by using the surveillance records in some way, but I can't see how. The only other detail I have is "The guy looked nervous", which doesn't seem to have any connection with the surveillance records.

this post was submitted on 27 Feb 2025
265 points (98.5% liked)

Programming

28304 readers
279 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS