Hi @Kevin M ,
Using TSQL statements will be relatively simple.
You can refer to the following two methods:
Method 1:
SELECT Color = STUFF((
SELECT ',' + Color
FROM TableName
FOR XML PATH('')
), 1, 1, '')
Method 2:
SELECT STRING_AGG( ISNULL(Color, ' '), ',') As Color
FROM TableName
Output:
Hope this helps.
Best Regards,
Joy
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.