Program Flow

SQL statements following a condition or loop (for example, IF, ELSE, WHILE, and so on.) should be tab indented (preferably by 5 characters) and the BEGIN and END statements should be indented at the same level. Even if there is only one statement (which is the only time they are not necessary), they should be surrounded by BEGIN and END.