I tried for hours and read many posts but I still can't figure out how to handle this request:
I have a table like this:
roleid comid
11 A
12 A
11 B
12 B
13 B
I would like to select the roleid that occurs more than once with the different comid.
I wanna output should be something like:
roleid comid
11 A,B
12 A,B
13 B

Guest UserRank #816 · 2.8K reputationPosted Dec 10, 2018, 1:49 AM EST
Ramesh PalanivelRank #372 · 6.8K reputationPosted Dec 10, 2018, 2:15 AM EST
Jayesh VaghasiyaRank #9,790 · 202 reputationPosted Dec 17, 2018, 7:58 PM EST
Code AloneRank #488 · 5.1K reputationPosted Dec 18, 2018, 2:55 AM EST