Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Dynamic Column Help

Author  Topic 

julius.delorino
Starting Member

29 Posts

Posted - 2012-09-27 : 22:54:20
Source Table:
Column1
Column2
Column3
Column4
Column5


Desired Output:
Column1 Column2 Column3 Column4 Column5


please help how to attain this dynamically,more power,thank you.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-09-27 : 22:56:49
see

http://beyondrelational.com/modules/2/blogs/70/posts/10840/dynamic-pivot-in-sql-server-2005.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

julius.delorino
Starting Member

29 Posts

Posted - 2012-09-27 : 23:30:40
Thank you sir for your quick response.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-09-28 : 10:34:06
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -