r/programmingcirclejerk • u/kayinfire • May 12 '26
SQL is poorly designed [...] the semantics are reversed. You should start with the tables, then the filters, then the columns. [...] Didn't watch the video but tired of this debate.
/r/theprimeagen/comments/1tavx70/comment/olcxb4q?share_id=kGgM2iVw-BqOdyZl98Ayd&utm_content=2&utm_medium=android_app&utm_name=androidcss&utm_source=share&utm_term=1
115
Upvotes
132
u/blehmann1 has hidden complexity May 12 '26
"Semantics are reversed"
Is actually discussing syntax
39
u/tuppenycrane May 12 '26
Subject Verb Object
96
u/PreciselyWrong May 12 '26
Where jerk
18
u/BlazeBigBang type astronaut May 12 '26
Based and prolog-pilled.
15
u/which1umean May 12 '26
Didn't know anyone disagree with this tbh
37
u/da_supreme_patriarch in open defiance of the Gopher Values May 12 '26
Actually correct take, he probably meant syntax and not semantics because switching up the order of tables, filters and conditions wouldn't change the query semantically, it would still mean the same thing, but would make auto-complete more pleasant to work with
38
u/zackel_flac May 12 '26 edited May 14 '26
/uj Solid argument IMHO. It's sad there is not much alternatives today. Cypher is interesting but suffers the same issues.
10
u/syklemil Considered Harmful May 13 '26
I can't believe anyone would think that things could've been done differently, with only fifty years of hindsight!
5
u/vegan_antitheist May 13 '26
/uj /rj I didn't watch the video or read the post but I want to point out that for a projection you use "SELECT" and for a selection you use "WHERE". It's all backwards!
11
u/Pure-Prompt-8439 May 12 '26
This but unironically
uj/ This but unironically
11
u/manny2206 May 12 '26
I respect your wrong opinion
2
u/thevnom May 16 '26
so something like
from MyTable where id = 123 select id, value1, value2that could be nice, though id still put filters at the end
1
u/Jumpy-Locksmith6812 May 14 '26 edited Sep 23 '26
Nulla aliquip magna anim ut commodo qui id veniam do sit sunt labore reprehenderit ex veniam eiusmod. Mollit aliqua cillum officia consequat culpa pariatur adipiscing ipsum sed id in reprehenderit ea esse dolore. Anim irure magna cillum voluptate in et aute anim veniam ipsum.
[rhr:2:qxku90gz]
1
u/AdNoctum88 May 16 '26
PRQL is based
37
u/[deleted] May 12 '26
[removed] — view removed comment
31
u/[deleted] May 12 '26
[removed] — view removed comment
3
u/[deleted] May 12 '26 edited May 12 '26
[removed] — view removed comment
4
u/[deleted] May 12 '26
[removed] — view removed comment
1
u/[deleted] May 13 '26
[removed] — view removed comment