I thought I seen this somewhere but can't seem to find it on the net. Is there a T-SQL function to take the results of one query and pivot them into one column with a delimiter?
Something like;
SELECT JOIN(', ',SELECT ProductID from Products) as NewColumn
Results would look like:
NewColumn
34, 56, 58, 9, 45, 89
Thanks,
Strick