let's say I have:
User Email
1 [email protected]
1 [email protected]
1 [email protected]
2 [email protected]
2 [email protected]
3 [email protected]
and I want the output:
User Eamil1 Email2 Email3
1 [email protected] [email protected] [email protected]
2 [email protected] [email protected]
3 [email protected]
I found other answers about using FOR XML Path, but that's not what I want. it combines rows into one column, and separate the values with ';'
I also tried JOIN the table with itself, and it's also not the result I want.
Any help is appreciated.