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 |
|
sqlilliterate
Starting Member
40 Posts |
Posted - 2008-01-29 : 08:16:41
|
Help me achieving a query …My table look likecol1 col2-------------------a 1a 2a 3b 1b 2and I want the output as… col1 col2 col3 col4----------------------------------------a 1 2 3b 1 2 The col2 values should be populated as different columns for the col1 valueThanks:) |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-01-29 : 08:20:21
|
The only two ways to go is the PIVOT or the "multiple case" way. E 12°55'05.25"N 56°04'39.16" |
 |
|
|
|
|
|