SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 how to convert row to column
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

zubamark
Starting Member

23 Posts

Posted - 04/09/2013 :  10:48:10  Show Profile  Reply with Quote
Have dynamic data:
C1 C2
A 1
B 2
C 3
D 4
....
Need:
C1 C2 C3 C4 .................
A B C D .................
1 2 3 4 .................

TG
Flowing Fount of Yak Knowledge

USA
6059 Posts

Posted - 04/09/2013 :  15:11:48  Show Profile  Reply with Quote
use excel or this method:

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


Be One with the Optimizer
TG
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000