I would an example table as follows:
TableA
ID / Name / Sport
001 / Max / Football
005 / Steven / Badminton
006 / Cindy / Swimming
001 / Max / Tennis
001 / Max / Rugby
005 / Steven / Football
I would like a SQL query statement to return the result as follows:
ID / Name / SportList
001 / Max / Football; Tennis; Rugby
005 / Steven / Badminton; Football
006 / Cindy / Swimming
Sorry, I have to use '/' to differentiate the column. Unable to attached a file due to low reputation.
Thank you.