I want to basically join these 3 table in a view for a report:
Class Table:
ID Name
1 N1
2 N2
3 N3
Flags Table:
ID ClassID Flags
1 1 F1
2 1 F2
3 2 F6
4 2 F3
5 3 F2
Sessions Table:
ID ClassID Sessions
1 1 S1
2 1 S4
3 2 S3
4 3 S5
5 3 S4
So my desired view should be something like this:
ID Name Flags Sessions
1 N1 F1,F2 S1,S4
2 N2 F6,F3 S3
3 N3 F2 S5,S4