Re:Writing more legible SQL
by matwood on Thursday November 03, 2016 @08:41AM
(#12863470)
I've been writing SQL for close the 20 years, and my style has settled into something very similar to yours. Lowercase everything, and use indentation to clearly separate the major parts of the query.
And, like you, be pragmatic. If it is a 1 liner, keep it a 1 liner.
And, like you, be pragmatic. If it is a 1 liner, keep it a 1 liner.