this post was submitted on 19 Oct 2023
1746 points (98.8% liked)
Programmer Humor
32571 readers
317 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Sorry, to clarify, not everything is in all caps. I'll append my prefered syntax below
The above is some dirt simple SQL, when you get into report construction things get very complicated and it pays off to make sure the simple stuff is expressive.
You indent your JOIN? Why on earth? It lives in the same context as the SELECT.
I've seen both approaches and I think they're both quite reasonable. An indented join is my preference since it makes sub queries more logically indented... but our coding standards allow either approach. We've even got a few people that like
Actually not. It's part of the FROM
That double indented from is hurting me
Um you forgot the semicolon before with assuming there isn't one in the previous statement. Syntax error. Code review failed
There's no way we're running in multi statement mode... I like my prepared queries, thank you very much.