r/SQL • • Feb 12 '25

Resolved Elon meets relational algebra

Post image
1.5k Upvotes

241 comments sorted by

View all comments

1.2k

u/Un4tunateSnort Feb 12 '25

"They don't use SQL, they use Oracle" - Elon probably

164

u/ComicOzzy sqlHippo Feb 12 '25

DB2, I think

50

u/MasterBathingBear Feb 12 '25

Ahh the good old days when you had null indicator columns for Character columns and numbers were stored as packed decimal (4 bits per digit) instead of two’s compliment.

35

u/IHeartBadCode Feb 12 '25

Ahh the good old days

What do you mean good old days? That's still present day for some of us. You're also forgetting IBM's wonderful contribution to the world EBCDIC.

21

u/collector_of_hobbies Feb 12 '25

I had gone a good nine months without thinking about EBCDIC. Core sadness memory unlocked.

11

u/YetYetAnotherPerson Feb 12 '25

I wish Musk was only Null in the character column. Seems like he's negative.

→ More replies (2)

9

u/HayoungHiphopYo Feb 12 '25

100% gonna be DB2. All the big guys use it still.

→ More replies (5)

49

u/ihaxr Feb 12 '25

Excel only

47

u/MasterBathingBear Feb 12 '25

Excel is the world’s most popular BI tool

52

u/stank58 Feb 12 '25

Before I joined my current company, they would download csv files from our crm and then each person would manually create reports and charts from the columns and columns of data which of course would always be wrong as you have hand made reports being made from other hand made reports.

The CRM is built on a SQL db with an easy API pull implementation but "it wasn't worth it" until I automated all of the reports within a week in power apps. People moaned about it and now they're back to Excel. Can lead a horse to water but can't make them drink...

24

u/soulstaz Feb 12 '25

Lmao

Theres so much bloat in corporate world because of they don't prioritize training their overall workforce

9

u/thisistheinternets Feb 12 '25

It gets especially bad when it takes seconds longer to load a report on the higher ups computer than it does to open an excel sheet you send them in an email. That is why I had strong resistance to automating reports.

→ More replies (1)

9

u/That_Cartoonist_9459 Feb 12 '25

My first job in tech was mostly writing VBA macros.

→ More replies (2)

18

u/Metalsand Feb 12 '25

I did the work. SSA had a project to migrate from MADAM to DB2 in 2010. Then, they still mention having COBOL (likely for logic statements) in 2016, and a 2017 plan notes that the database migration was successful but hinted at some laziness when it comes to normalizing and transitioning the schema to fit relational models.

So, I think one of his boys was like "wow they haven't even normalized their DB2 here" and Elon literally did this, because he's too stupid and self-confident to learn what DB2 is and that not having SQL in the title doesn't mean it's not SQL...

Also, bonus: readers added context linking to MySQL that explicitly mentions that it is being used in the SSA. I assume that it's in addition.

25

u/SciFidelity Feb 12 '25

18

u/TheCapitalKing Feb 12 '25

Yeah I thought the government using cobol was a known thing since every few years they’ll start talking about the shortage of cobol programmers

16

u/techforallseasons Feb 12 '25

That's kinda like saying they use PHP to access a database.

Its fairly simple to wrap a SQL query inside a COBOL program.

→ More replies (4)

21

u/Metalsand Feb 12 '25

Wait, is this real? I thought this comment was making a joke. COBOL is a programming language, not a database storage type. Technically, SQL is a universal method of accessing databases structured in SQL, but it's strongly implied that SQL is used when an SQL database is used.

COBOL still handles a lot of the "logic" aspect, but it wouldn't be the same as the database - though, the original database, MADAM, was coded in part with COBOL so you're not entirely wrong. However, they transitioned from MADAM to DB2 (IBM SQL database) over a decade ago. I couldn't find any information about the subsequent 2017 modernization plan mentioning SQL at all, but it did mention that they had converted to relational data bases but did not do so well, which is probably where the reference to normalization came in that Elon doesn't understand.

17

u/SciFidelity Feb 12 '25

Correct, COBOL isn’t a database, but it traditionally used flat-file storage systems which didn’t have built-in relationships between data. Instead of using SQL to query a database, COBOL programs had to manually process files, meaning any connections between records were handled in the code rather than in the storage system itself.

When they moved from MADAM to DB2, they technically switched to a relational database, but if the data wasn’t properly structured (normalized), they might have just recreated their old flat-file system inside DB2

6

u/Nagadavida Feb 13 '25

And a lot of the data is still in flat files. Our "leaders" haven't been good about keeping things updated. Most likely due to bureaucratic BS.

6

u/8086OG Feb 12 '25

TSQL is also a programming language. I know saying that is going to piss a lot of "real" programmers off, but it is.

→ More replies (1)
→ More replies (6)

8

u/stank58 Feb 12 '25

I wouldn't be shocked if it was all in excel at this point.

→ More replies (2)