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 |
scelamko
Constraint Violating Yak Guru
309 Posts |
Posted - 2005-07-08 : 10:34:45
|
Guys, I need to transpose my rows to columns.This is my scenario with sample datasrcdata subid srcdata2 srcdata3____________________________________________1000002 1 2000003 23000020 3 1000030 12000009 23000021 3I want to populate columns srcdata2 and srcdata3 whenever subid = 1 with the values of srcdata when subid = 2 and 3 respectivelysrcdata subid srcdata2 srcdata3____________________________________________1000002 1 2000003 3000020 2000003 23000020 3 1000030 1 2000009 30000212000009 23000021 3Any suggestions/inputs would be very helpful indeedThanks |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|