Slightly odd question here...
I have three tables, a USER table, a CENTRE table and a link table on user_id and centre_id.
What I want to do is use ASP to print out the users along with the centres they work in. So i can have something like:
Fred Centre1, Centre2, Centre3
Joe Centre1, Centre3
Bob Centre4
Just wondering if there is some SQL that would allow me to have one column with all the centres in a comma separated list within that column to spare me doing it in the ASP?
I have three tables, a USER table, a CENTRE table and a link table on user_id and centre_id.
What I want to do is use ASP to print out the users along with the centres they work in. So i can have something like:
Fred Centre1, Centre2, Centre3
Joe Centre1, Centre3
Bob Centre4
Just wondering if there is some SQL that would allow me to have one column with all the centres in a comma separated list within that column to spare me doing it in the ASP?