bmg002 - Wednesday, April 12, 2017 3:37 PM
+1 for SQLPrompt; however, if you (or your company) doesn't run to licences for that, then try the free site http://poorsql.com/ to do query code formatting.
Thomas Rushton
blog: https://thelonedba.wordpress.com