General information
Forum:
Microsoft SQL Server
Title:
Joining values into a single varchar string
I have a parent record with 0-n child records. The child records contain a field that I want to combine all the values into a single comma delimited string. I want to run a SQL7 query that will choose the parent record once and create the comma delimeted string as a field in the result set instead of choosing the parent record repeatedly for each child record. Is there any way to do this with SQL only, i.e.:no stored procedure?
Thanks in advance for any help with this.
Don
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only