Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programming
  3. SQL Noir

SQL Noir

Scheduled Pinned Locked Moved Programming
programming
21 Posts 20 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • em2@lemmy.mlE [email protected]

    Heck yeah

    S This user is from outside of this forum
    S This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #8

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

    S 1 Reply Last reply
    0
    • S [email protected]

      Solve mysteries through SQL.

      pruwybn@discuss.tchncs.deP This user is from outside of this forum
      pruwybn@discuss.tchncs.deP This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #9

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

      N 1 Reply Last reply
      0
      • ichbean@lemm.eeI [email protected]

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

        A This user is from outside of this forum
        A This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #10

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

        1 Reply Last reply
        0
        • S [email protected]

          Solve mysteries through SQL.

          L This user is from outside of this forum
          L This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #11

          Relevant:

          T 1 Reply Last reply
          0
          • killeronthecorner@lemmy.worldK [email protected]
            SELECT few FROM people WHERE gets_joke = 1
            
            x00z@lemmy.worldX This user is from outside of this forum
            x00z@lemmy.worldX This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #12

            What would my few say?

            1 Reply Last reply
            0
            • S [email protected]

              Solve mysteries through SQL.

              R This user is from outside of this forum
              R This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #13

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

              1 Reply Last reply
              1
              0
              • pruwybn@discuss.tchncs.deP [email protected]

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

                N This user is from outside of this forum
                N This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #14

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

                1 Reply Last reply
                0
                • L [email protected]

                  Relevant:

                  T This user is from outside of this forum
                  T This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #15

                  Alt text:

                  1 Reply Last reply
                  0
                  • ichbean@lemm.eeI [email protected]

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

                    T This user is from outside of this forum
                    T This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #16

                    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

                    1 Reply Last reply
                    0
                    • S [email protected]

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

                      S This user is from outside of this forum
                      S This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #17

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

                      D 1 Reply Last reply
                      0
                      • S [email protected]

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

                        D This user is from outside of this forum
                        D This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #18

                        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.devA 1 Reply Last reply
                        0
                        • S [email protected]

                          Solve mysteries through SQL.

                          D This user is from outside of this forum
                          D This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #19

                          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

                          R 1 Reply Last reply
                          0
                          • D [email protected]

                            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.devA This user is from outside of this forum
                            anzo@programming.devA This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #20

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

                            1 Reply Last reply
                            0
                            • D [email protected]

                              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

                              R This user is from outside of this forum
                              R This user is from outside of this forum
                              [email protected]
                              wrote on last edited by
                              #21

                              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.

                              1 Reply Last reply
                              0
                              • System shared this topic on
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups