Often I will end up with very complex SQL statements and I wondered if there was style guideline out there that dictates a common way of laying various aspects of a query out.>
Here are some SQL programming guidelines and best practices we collected:
You can check detailed explanation of those best practices in this blog post.