The only thing worse than using PL/SQL to dynamically generate extremely long SQL queries is ...
Using Excel to dynamically generate extremely long SQL queries.
I'm going to go crawl under a rock and die now. Hat tip and angry frustrations with mild curses to the guy who came before, who was here about 14 months and left this for me...