SyntaxFix
Write A Post
Hire A Developer
Questions
You can do this using stuff:
SELECT Stuff( ( SELECT ', ' + CARS.CarName FROM CARS FOR XML PATH('') ), 1, 2, '') AS CarNames