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 |
|
goodman2253
Yak Posting Veteran
88 Posts |
Posted - 2012-04-21 : 09:14:35
|
| Hi AllI have a table name T1 which looks likeX1--Y1A---BC---DE---FG---HI---JI want the write the select query which gives the output likeABCDEFGHIJ |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2012-04-21 : 10:11:35
|
| SELECT X1 FROM T1UNION ALLSELECT Y1 FROM T1 |
 |
|
|
goodman2253
Yak Posting Veteran
88 Posts |
Posted - 2012-04-21 : 10:17:44
|
| But it is giving the output as acegbdfhBut i want the output as ABCDEFGHIJ |
 |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2012-04-21 : 10:33:37
|
| SELECT X1 FROM T1UNION ALLSELECT Y1 FROM T1ORDER BY X1 |
 |
|
|
|
|
|