Quantcast
Channel: SQL Server Setup & Upgrade forum
Viewing all articles
Browse latest Browse all 7696

changing to comma separated values from a table

$
0
0

Hi Gurus

I have a column called ID and second column duplicatesID. So for each ID I can have more than one Duplicate ID.

I want to have comma separated for values of Dup IDs for each ID.

so

ID | DuplicateIDs

1 | 10501

1 | 2010

2 | 103

2 | 109856

2 | 1245

result wanted is

ID | DupsIDs

1 | 10501 , 2010

2 | 103,109856, 1245

regards,


ebro


Viewing all articles
Browse latest Browse all 7696

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>