Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have two tables, Subjects and Departments, with a many to many relationship. The junction table is called Departments_Subjects_junction. i use sql server dbms.

Subjects:
subjects_id(primary key)
subject_name


Departments:
department_id(primary key)
department_name

Departments_Subjects_junction:
subject_id(primary key)
department_id(primary key)


I am able to store data in all the three tables.

Now in my v.b application i want to display the records for the user to see.
For eg, the user must see the list of all subjects for each department.
Something like this:

DepartmentA- Subject1, subject2, subject3,Subject4
DepartmentB- subject2, subject3, subject5
DeparmtentC- subject1, subject3, subject6.


How can i implement this in the best manner?using datagrid or listview or somethingelse? Please help. Thanks.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900