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 |
|
yen
Starting Member
1 Post |
Posted - 2004-02-16 : 14:48:05
|
| How can i make the Sql result like this. My table details are like thisid name1 a2 b3 c4 d5 e6 f7 gi want the result like thisid name id name id name1 a 2 b 3 c4 d 5 e 6 f7 ghow can i do this. Any ideaThanks in advance |
|
|
SamC
White Water Yakist
3467 Posts |
Posted - 2004-02-16 : 16:09:11
|
| It'll take unions like this (assumes a fixed number of columns)SELECT id1 AS ID, name1 AS Name FROM MyTableUNION ALLSELECT id2, name2 FROM MyTableUNION ALL SELECT id3, name3 FROM MyTableORDER BY ID, NameSam |
 |
|
|
ditch
Master Smack Fu Yak Hacker
1466 Posts |
|
|
|
|
|