this post was submitted on 19 Oct 2023
1724 points (98.9% liked)

Programmer Humor

32461 readers
651 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] rwhitisissle@lemmy.ml 48 points 1 year ago* (last edited 1 year ago) (32 children)

The phrase "SQL programmers" is so fucking weird. SQL isn't a programming language. It's a query language. You don't "program" things with SQL. You utilize SQL as a component of programs for data insertion and lookup, but the actual logic of execution is done in a programming language. Unless you're doing Oracle PL/SQL, in which case why are you giving money to Oracle?

Edit: Damn, this comment made people mad.

[–] dan@upvote.au 23 points 1 year ago* (last edited 1 year ago) (2 children)

You don't "program" things with SQL

Why not? It sounds like you haven't written any OLAP queries :)

I've written ETL data pipelines using a system similar to Apache Airflow, where most of the logic is in SQL (either Presto or Apache Spark) with small pieces of Python to glue things together. Queries that are thousands of lines long that take ~30 minutes to run and do all sorts of transformations to the data. They run once per day, overnight. I'd definitely call that programming.

Most database systems support stored procedures, which are just like functions - you give them some input and they give you some output and/or perform some side effects.

[–] BurnerPhone867@lemmy.ml 2 points 1 year ago (1 children)

thousands of lines long that take ~30 minutes

Oh yea!!! Well I have 76 lines of code that takes up to 18 hours to run for 1 client!!!!!

/s

[–] dan@upvote.au 2 points 1 year ago

Haha I only mentioned the run time to provide some context, since a lot of people have only ran OLTP queries that take less than a few seconds to run.

load more comments (29 replies)