He
Anyone know how to get the same ids here into one row along with the other column after the comma, so group by id where there is another record from other column.
SELECT
CONCAT(p.ID, ', ', '', s.[value]) 'id, OtherColumn'
FROM [Test].[Person].[Name] s
INNER JOIN [Test].[Person].[Nameref] sr ON s.Id = sr.ID
INNER JOIN [Test2].[Test2] p ON sr.Id = p.ID
GROUP BY p.ID, s.value
1, 4GL
1, Web
1, CCS
Needs to be:
1 , 4GL, Web, CCS
Thanks