Re:Sqlfmt: an opinionated online SQL formatter
by Semiapies on Thursday September 27, 2018 @08:22PM
(#18090016)
I never uppercase the SQL keywords. If it's more than a one-liner select statement, I format it so the indentation tells me what's going on.
To throw out a tossed-off example:
select
P.full_name, A.full_address, AT.type as address_type_name
from
People as P
inner join
Addresses as A on P.address_id=A.id
where
P.deleted is null
To throw out a tossed-off example: