I’m a tech interested guy. I’ve touched SQL once or twice, but wasn’t able to really make sense of it. That combined with not having a practical use leaves SQL as largely a black box in my mind (though I am somewhat familiar with technical concepts in databasing).

With that, I keep seeing [pic related] as proof that Elon Musk doesn’t understand SQL.

Can someone give me a technical explanation for how one would come to that conclusion? I’d love if you could pass technical documentation for that.

  • jacksilver@lemmy.world
    link
    fedilink
    arrow-up
    18
    ·
    6 days ago

    If SSNs are used as a primary key (a unique identifier for a row of data) then they’d have to be duplicated to be able to merge data together.

    However, even if they aren’t using ssn as an identifier as it’s sensitive information. It’s not uncommon to repeat data either for speed/performance sake, simplicity in table design, it’s in a lookup table, or you have disconnected tables.

    Having a value repeated doesn’t tell you anything about fraud risk, efficency, or really anything. Using it as the primary piece of evidence for a claim isn’t a strong arguement.

    • DahGangalang@infosec.pubOP
      link
      fedilink
      arrow-up
      3
      ·
      6 days ago

      This sounds like a reasonable argument.

      Can you pass any resources with examples on when having duplicate values would be useful/best practices?

    • credo@lemmy.world
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      6 days ago

      This is the answer… it seems few on lemmy have ever normalized a database. But they do know how to give answers!

      • jacksilver@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        6 days ago

        Thanks, OP seemed more curious about the technical aspects than just the absurdity of the comment (since pretty much every business uses SQL) so hoped a more technical explanation might be appreciated.