Is there a way to concatenate all the varchar values in a result set? I'm looking for an aggregate function that I could use with a group by.
Say I've got the following data.
ID FK Comment
1 1 Some string value
2 1 Some other string value
3 2 Some usefull bit of whit
and I want the following as output:
FK AllComments
1 Some string value Some other string value
2 Some usefull bit of whit
Thanks for any help.
Say I've got the following data.
ID FK Comment
1 1 Some string value
2 1 Some other string value
3 2 Some usefull bit of whit
and I want the following as output:
FK AllComments
1 Some string value Some other string value
2 Some usefull bit of whit
Thanks for any help.