The union all is properly placed. The formatting of the question is a little awkward - so it looks wrong at first glance.
Thanks (Matt) for the question.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events