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
 SQL Server Development (2000)
 concantenate values from multiple records

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-08-18 : 07:56:23
STEVE writes "What is the best way to concatenate values from multiple records to single value?

Here is an example of the table:

CODE | NAME | NOTES
1 | steve | note one
1 | steve | note two
2 | lisa | note 1
2 | lisa | note 2



Here is what I need:

CODE | NAME | NOTES
1 | steve | note one, note two
2 | lisa | note1, note2

Thank you."

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-08-18 : 08:08:34
Refer this
http://sqljunkies.com/WebLog/amachanic/archive/2004/11/10/5065.aspx?Pending=true

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2005-08-18 : 08:21:51
And, closer to home!

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=53293

Kristen
Go to Top of Page
   

- Advertisement -