It does make sense to perform the concatenation in your presentation layer. However, here is a sql trick to do it. you can also put this logic in a function that will return a CSV for multiple rows:declare @keywords varchar(50)select @keywords = coalesce(@keywords + ', ' + keyword, keyword)from ( select 'Keyword1' keyword union select 'Keyword2' union select 'Keyword3' ) aselect @keywords [CSV]
results:CSV -------------------------------------------------- Keyword1, Keyword2, Keyword3
Be One with the OptimizerTG