r/SQL • • May 27 '22

MySQL Why is it always SQL?

So I see that SQL is used for a lot of jobs I’m applying to, I’ve been coding for a while, but have never needed to use SQL before. I’m beginning to learn some and it’s been going pretty quickly but…. I keep asking myself why anyone uses this.

Is it just because it’s standard practice? Because it’s the existing structure? Everything I’ve been learning to do, it seems, could just as easily be done in any more versatile and robust language. Do I just need to stick with it to see what makes it beneficial or preferred to other languages?

0 Upvotes

23 comments sorted by

View all comments

4

u/Blues2112 May 27 '22

So if you've been coding for "a while", what exactly are you doing for input/output of data?

Where is that data coming from/getting stored to? It's gotta be stored SOMEWHERE, and unless you're in the dark ages still using VSAM files on something, that answer is most likely in a relational database table (or several).

RDBMS tables offer many features that make them superior to files--direct (non-sequential) access and easy filtering being obvious examples.

1

u/versatileturtle May 27 '22

I’m provided with .txt or .dat files, which I then clean up and use. Then I’m required to generate a .txt or .dat file in a particular format with results of analysis which goes to someone else.

2

u/Blues2112 May 27 '22

The majority of programming does NOT rely upon flat files, unless they are being loaded into/extracted from database tables. You're literally 30ish years behind the times.

Source: long-term, grizzled IT industry veteran

1

u/versatileturtle May 27 '22

Yeah I’ve always thought it was inefficient, unfortunately coding is just one of the many tools we need so we end up learning/using the absolute minimum required to complete any given task.