Nuts and Bolts - part 2
WITH statements
Because the WITH statement works like having a temporary table, the formatting will follow rules similar to the CREATE TABLE statement.
• Between the WITH and the alias there is a tab followed by the word AS
and a carriage return
• The round brackets surrounding the inner query indent one tab from the
alias
• The inner query indents one tab from the round brackets
Conclusions
This coding style is at first sight complex and with some drawback as it can slow down the coding process because of more keystrokes required for the uppercase and the carriage return. However, when the writing automatism is acquired the coding speed is very fast.