Get , sep value from table column

Posted: May 26, 2017 in SQLServer, Uncategorized
Tags: , , ,
SELECT STUFF(
(SELECT ‘,’ + s.PerfIndDesc
FROM table s
ORDER BY s.id
FOR XML PATH( )),1 ,1, )
GO

Leave a comment