So I've got this table
Email Username
------------------------- -------------------------
[email protected] a1
[email protected] a2
[email protected] a3
[email protected] a4
[email protected] b1
[email protected] b2
[email protected] b3
[email protected] b4
[email protected] c1
[email protected] c2
[email protected] c3
[email protected] c4
(12 row(s) affected)
But I want each e-mail address to appear once, then all associated Usernames to be listed after it, if that's possible..
Any help whatsoever is appreciated, Cheers.
Edit
Ok, so apparently, all the usernames will come under one column, all concatenated together, sounds kinda dumb, but that's what I've been asked for.
The output I want would be
Email Username
------------------------- -------------------------
[email protected] a1, a2, a3, a4
[email protected] b1, b2, b3, b4
[email protected] c1, c2, c3, c4
[email protected] d1, d2, d3, d4