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.
| Author |
Topic |
|
shaik.zakeer
Posting Yak Master
117 Posts |
Posted - 2009-10-26 : 03:28:24
|
| i have values in a table like thiscol1 col2 col3 datea - - 10/02/2009b c - 10/05/2009- d e 10/16/2009- - f 10/20/2009i want the result like thisitem 10/02/2009 10/05/2009 10/16/2009 10/20/2009_____________________________________________________________________col1 a b - - col2 - c d -col3 - - e fplease help me how can i do this.Note: i don't know how many date's are going to come.help needed very urgentThanks Jack |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2009-10-26 : 04:30:42
|
looks like you will needed to use PIVOT operator with Dynamic SQL.Check out PIVOT in the Books OnLine and for Dynamic SQL, refer to The Curse and Blessings of Dynamic SQL KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
shaik.zakeer
Posting Yak Master
117 Posts |
Posted - 2009-10-26 : 06:56:33
|
| not able to understood how to do this...can anyone give me script for this....its very urgent....help meThanks Jack |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
|
|
|
|