Hi,
Currently SQL Formatter has some limitations:
1. Subqueries are supported only upto three levels for every query (but an unlimited number of JOIN constructs are supported).
2. Special constructions not supported includes,
* SELECT statement used as argument to a function (like “SELECT IF((SELECT ….),'true','false')”)
* Various types of SELECT … CASE … and SELECT … IF… constructions
* UNIONS clauses are not handled.
We will improve SQL FORMATTER once we plan for an enhancement. Right now priority is not set.
We added in same issue tracker,
http://code.google.com/p/sqlyog/issues/detail?id=1174
BTW
FYI other formatting issues are listed here and all will be considered later while enhancing this feature,
http://code.google.com/p/sqlyog/issues/detail?id=979
http://code.google.com/p/sqlyog/issues/detail?id=1112
Regards,
Navya