Change t-sql 2012 to not use a cte

Had you commented on my reply here, we might have tweaked it to accommodate your new needs.

2 Likes