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.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 concatenating field values in a single string

Author  Topic 

genideva
Starting Member

1 Post

Posted - 2003-04-08 : 16:22:44
I have this resultsset that looks like this:


Proposal_id title contact_id
200008886 Aqui Se Contruye 560
200008886 Aqui Se Contruye 234
200008886 Aqui Se Contruye 333
200008886 Aqui Se Contruye 9876
200008886 Aqui Se Contruye 345
200008886 Aqui Se Contruye 7878
200001234 Andromeda 844
200004556 Bart Simpson 1212
200004556 Bart Simpson 5656
200004556 Bart Simpson 12456


I need it to look like this:

200008886 Aqui Se Contruye 560,234,333,9876,345,7878
200001234 Andromeda 844
200004556 Bart Simpson 1212,5656,12456


How can I do my select????PLEASE

MichaelP
Jedi Yak

2489 Posts

Posted - 2003-04-08 : 16:54:13
http://www.sqlteam.com/item.asp?ItemID=11021

Enjoy!@

Michael

<Yoda>Use the Search page you must. Find the answer you will.</Yoda>
Go to Top of Page
   

- Advertisement -