I've the following data in my SQL table (SubjRecord)
Subject | Email
English | abc@mail.com
Maths | abc@mail.com
Science | abc@mail.com
English | xyz@mail.com
Maths | xyz@mail.com
Science | xyz@mail.com
What should the SQL statement be like if I want the result to be:
Subject | Email
English,Maths,Science | abc@mail.com
English,Maths,Science | xyz@mail.com
Thanks in advance.