Re: Dynamic UNPIVOT using FOR XML and nodes()

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Yes, this is very cool technique! Thanks for sharing!

I have used similar method to get aggregates across columns:
http://pratchev.blogspot.com/2009/08/column-aggregates.html

The down side of those methods is performance....

Another similar query I posted earlier today:
http://social.msdn.microsoft.com/Forums/en-US/transactsql/thread/c6bc463c-3c5d-4c14-bdf8-c043f69eb9f3

--
Plamen Ratchev
http://www.SQLStudio.com
.



Relevant Pages