I am writing an SQL Coding Standard for the company I work for.
I read literature that says the best option is leading
select a.name
,a.surname
,a.address
from person a
But also trailing:
select a.name,
a.surname,
a.address
from person a
or non-standard at all
select name, is_disabled,
is_policy_checked, is_expiration_checked
from sys.sql_logins;
My first question is: is there an SQL coding standard worldwide. If not, why not? I think that would be incredibly useful. Something like PEP8.
And what would be the most practical way to solve this problem?
Thank you in advance
Lucas source
share