This may be simple, but I can't find any way to do it. I have a table with faculty, and then a table with activities. The activities table contains the personid's of the faculty who sponsor the activity. I want to be able to group the data so that the name of the activity is shown and then the names of the faculty sponsors. I have been able to get the following
Activity 1 Sponsor
Activity 1 Sponsor
Activity 2 Sponsor
Activity 2 Sponsor
Activity 2 Sponsor
Activity 3 Sponsor
or the activity with the first sponsor listed but not the rest.
What I want is
Activity 1
Sponsor, Sponsor
Activity 2
Sponsor, Sponsor, Sponsor
Activity 3
Sponsor
I have about 20 activities, so I don't think doing a seperate sql statement for each one is the answer. If you have any ideas let me know.