Group_concat?
Jun 5, 2005Is there anyway to concatenate the columns of a select statement over multiple rows
eg, say my select comes back with (its a big select with many joins etc)
FirstName LastName Other
Billy Bob Test1
Billy Bob Test2
Billy Bob Test3
Jon Smith fubar1
Jon Smith fubar2
I want it to return
Billy Bob Test1 Test2 Test3
Jon Smith fubar1 fubar2
I think the GROUP_CONCAT in mySQL performs this function, is there anything in ms sql
Thanks
Robbo