SQL Style Guidelines

Look at a few examples to understand the SQL style guidelines.

The first step here is to realize that your database engine is actually part of your application logic. Any SQL statement you write, even the simplest possible, does embed some logic; you are projecting a particular set of columns, filtering the result to only a part of the available dataset (thanks to the where clause), and you want to receive the result in a known ordering. That is already business logic. Application code is written in SQL.

Get hands-on with 1400+ tech skills courses.