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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2005-11-07 : 07:41:18
|
| Payal Shah writes "HelloI have question regarding merging table. I have Asset Number in one table and Asset Name in one table. Can i merge two coloumn and add as third coloumn in sqlNo Name001 Computer002 Printer003 Computer004 CopierI want to add third coloumn that shows like followingAsset001- Computer002- Printer003- Computer004- CopierAny help would be appreciated.ThanksPayal Shah" |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-11-07 : 07:42:42
|
| Select cast(No as varchar)+' ~ '+Name from yourTableMadhivananFailing to plan is Planning to fail |
 |
|
|
chiragkhabaria
Master Smack Fu Yak Hacker
1907 Posts |
Posted - 2005-11-07 : 08:03:44
|
| Also you can try Select Convert(Varchar(10),No) + '-' + Name As Asset From <TableName> Complicated things can be done by simple thinking |
 |
|
|
|
|
|