1720
I love it when I have to scream at a computer
(lemmy.world)
Post funny things about programming here! (Or just rant about your favourite programming language.)
Speaking as a Senior Dev specialized in database access and design... you don't have to use all caps - SQL is actually case agnostic.
But... but my fucking eyes man. I'm old, if your branch doesn't have control keywords in all caps I'm going to take it out back and ol' yeller it.
There are few hills I'll die on but all caps SQL and singular table names are two of them.
I'm a sql developer, and I am completely the opposite to you. I will find it incredibly difficult to read when everything is in caps
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