SO I have a table with 3 cols:
Col1 Col2 Col3
a b c
b c null
a null b
c d a
And my desired output will be:
a,b,c,d,null
I am hoping to have the output in a single string if possible.
I have tried:
SELECT DISTINCT col1, col2, col3 FROM table
and didn’t get the desired results. Any Ideas?
1 Answer