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 |
|
callawayx14
Yak Posting Veteran
73 Posts |
Posted - 2008-09-04 : 15:10:36
|
| Hello, I'm trying to concatenate two records in the same field For example the results look like this 123 Dan123 BillSELECT ID, NAME FROM NAMEWHERE ID = '123'I would like to see 123 Dan Bill |
|
|
Bustaz Kool
Master Smack Fu Yak Hacker
1834 Posts |
Posted - 2008-09-04 : 15:53:22
|
| select a.ID, a.NAME + b.NAMEfrom NAME aINNER JOIN NAME bON a.ID = B.IDAND a.NAME > b.NAMEDo you care if DAN comes beford BILL or the other way around?=======================================It is impossible to imagine Goethe or Beethoven being good at billiards or golf. -H.L. Mencken, writer, editor, and critic (1880-1956) |
 |
|
|
callawayx14
Yak Posting Veteran
73 Posts |
Posted - 2008-09-04 : 17:16:44
|
| Yes,it is important to be able to determine which will come first.Thak you so much |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-09-05 : 03:33:43
|
| What if there are more than two names for same id?MadhivananFailing to plan is Planning to fail |
 |
|
|
callawayx14
Yak Posting Veteran
73 Posts |
Posted - 2008-09-05 : 10:59:16
|
| In this paticular situation, there would not be. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-09-06 : 02:21:03
|
quote: Originally posted by callawayx14 In this paticular situation, there would not be.
Well. Then go ahead with the given suggestionMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|