I am pretty new to C# and SQL Server database.
I have created a database called groups. It looks like this:

What I want is to be able to list all the groups, one by one, and then see all the members in the group.
At the moment I am only able to make a view that lists all the students and then what group the student is in.
I want it so that is specify which students are in which group in the table: Student_rel_group, and then the Windows Form Application should show it like this:

Can anyone help me out here. The problem is the many-to-many relation. If the group had only one member, it was no problem, but i cant make it show all the members. Only one at a time… 🙁
There are many ways to do that. A simple one goes like this:
Note that this only makes sense if the number of rows in your database is not too large, say less than 10,000 perhaps 100,000.
Some links on how to do that:
http://msdn.microsoft.com/en-us/library/ms171915%28v=vs.80%29.aspx
http://csharp.net-informations.com/dataset/dataset-relations.htm