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.

  • knightly the Sneptaur
    link
    fedilink
    arrow-up
    36
    arrow-down
    5
    ·
    edit-2
    7 days ago

    To oversimplify, there are two basic kinds of databases: SQL (Structured Query Language, usually pronounced like “sequel” or spelled aloud) and noSQL (“Not Only SQL”).

    SQL databases work as you’d imagine, with tables of rows and columns like a spreadsheet that are structured according to a fixed schema.

    NoSQL includes all other forms of databases, document-based, graph-based, key-value pairs, etc.

    The former are highly consistent and efficient at processing complicated queries or recording transactions, while the latter are more flexible and can be very fast at reads/writes but are harder to keep in sync as a result.

    All large orgs will have both types in use for different purposes; SQL is better for banking needs where provable consistency is paramount, NoSQL better for real-time web apps and big data processing that need minimal response times and scalable capacity.

    That Musk would claim the government doesn’t use SQL immediately betrays him as someone who is entirely unfamiliar with database administration, because SQL is everywhere.

    • DahGangalang@infosec.pubOP
      link
      fedilink
      arrow-up
      8
      ·
      7 days ago

      Just so I’m clear, you’re implying that a given SSN could appear associated to multiple “keys” because the key-value pair in a NoSQL database could have complex data.

      An example I can imagine is a widow collecting her dead husband’s Social Security. Her SSN could appear in her own entry and also in her dead husband’s as a payee of that benefit, thus appearing as a “duplicate” SSN.

      Is that in line with what you’re saying?

      • knightly the Sneptaur
        link
        fedilink
        arrow-up
        7
        ·
        edit-2
        7 days ago

        Indeed, that’s a possibility, but I’m not privy to the structure of the social security administration’s databases so I couldn’t say if it was indeed the case.

        The deeper point being, if the government has any databases at all, then some form of Structured Query Language is being used to read and write it.

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

          Thats how I feel too.

          Lol, I’d love to see the data hes trying to speak about (not that that’d be any kind of concerning for privacy /s). I don’t think he’s outright lying, but it definitely feels like a misrepresentation / wrong conclusion from the data.

          But thanks for your part in helping me understand all this!

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

      I didn’t read it like that. What I take from it is that he’s implying that the government uses something much stupider than sql, like Lotus1-2-3 or plain txt files or excel. I really wouldn’t be surprised that there’s some government department that had their IT done during the first Bush administration and didn’t really upgrade from it since.

      There are also probably some departments that don’t get much funding, so they organise part of their work into some shared excel files.l

      Nothing really wrong with that. Unless he’s implying that the entire federal government works like that, which is preposterously stupid.

      • knightly the Sneptaur
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        7 days ago

        Seems to me that the most generous interpretation would be the preponderance of Oracle’s DBs in the government, and Musk being pedantic since they aren’t literally called “SQL” like MySQL, MSSQL, or PostgreSQL (even though most Oracle DBs still fall into that category).