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 |
|
ashishashish
Constraint Violating Yak Guru
408 Posts |
Posted - 2012-03-21 : 06:46:53
|
| I have data in my table like thisVal_NM Col_NM RIDABC FILE_NM 1.sql FILE_EXT 14162 FILE_SZ 1DEF FILE_NM 2.doc FILE_EXT 22278 FILE_SZ 2XYZ FILE_NM 3 .XLS FILE_EXT 32320 FILE_SZ 3I Like to have output like this.FILE_NM FILE_EXT FILE_SZABC .sql 4162DEF .doc 2278XYZ .XLS 2320Is there anyway to get desired output. I tried something and used correlated sub-queries and get output but it is very costly operation.------------------------------------------------The answer is always no till than you don't ask. |
|
|
ashishashish
Constraint Violating Yak Guru
408 Posts |
Posted - 2012-03-21 : 06:54:51
|
| Sorry get it with PIVOT also. Thanks------------------------------------------------The answer is always no till than you don't ask. |
 |
|
|
|
|
|