I got two columns: sender, receiver in my table. I want to get the distinct for both column where sender or receiver equal to b and then concat them into string.
....................
sender | receiver
....................
a b
c b
b a
b c
d f
b e
b e
e b
The result set should look like a,b,c,e
What should I do to achieve this?