I quite often have a need to reformat RDBMS SQL statements into something readable and consistent. The advantage of doing this is the statements are easier on the eye to read.
Two web sites I find useful in this respect are:
http://www.dpriver.com/pp/sqlformat.htm
http://sqlformat.org/
Keywords: sql format beautify