What kind of SQL is needed to group by GroupID and then concatonate all of the Name values into 1 row with comma's separating the values?
So this:
GroupName GroupID Name
All screens 139091 Business
All screens 139091 Business
All screens 139091 Cafeteria/Bathrooms
All screens 139091 Lobby
Would become this:
GroupName GroupID Name
All screens 139091 Business, Cafeteria/Bathrooms, Lobby
This would need to be done on as many GroupID's as there are in the table and I am guessing skip duplicates. Is this better done on the C# side? The SQL version is 2008 R2
Group_Concat does not exist for use in SQL Server