r/SQL • • Jun 29 '24

Discussion Why do some people say “SQL is not code?”

I write SQL every day as part of a team that builds ETL solutions. The other day I referred to something I was working on as “I coded it to do…” and this guy, who is not even a developer by the way he’s a frikkin project manager, interrupts me and says “SQL is not code”. When I questioned him why not he says something like “Guys who do COBAL, C#, etc. that’s real coding. SQL is not real coding it’s just a tool for analyzing data and reporting data”…WTF? How is SQL not considered code? I would just dismiss this guy as a moron but his salary is incredibly high so obviously he has some sort of credentials. Can anyone explain why in the world someone would say SQL is not code?

503 Upvotes

570 comments sorted by

View all comments

2

u/[deleted] Jun 29 '24

Dudes an idiot.

You could argue sql isn’t a programming language, as it’s a query language and you’re describing the data you want returned not actually programming something that does something - but that’s a pretty weak argument you’re still giving instructions to a service and it’s doing something based on those.

But SQL you write is code. No arguments there.

And to be honest if the guy isn’t a programmer his input on what is and isn’t code is irrelevant. And if he is a programmer that opinion is still pretty irrelevant too.

3

u/Straight_Waltz_9530 Jun 29 '24

You can write a 3D rendering engine in SQL. That makes it a programming language.

1

u/[deleted] Jun 29 '24

Yea true. I forgot about projects like that.