saleemMSMS
Registered User.
- Local time
- Tomorrow, 01:33
- Joined
- Aug 12, 2009
- Messages
- 92
heres the scenario.
a training program has sessions. these sessions are attended by 2 different groups of people. one group can attend more than one session while a session can have more than one group of attendants.
i have 3 important entities for this matter.
session entity has [sessionId(PK), duration, title and datetime]
StudentGroups [studentGroupID(PK), groupName, LevelOfExp)
Professionals [ profID (PK), name, rank, baseDistrict]
so there are m:n relationships between session entity and the following 2 entities. i cannot take the student groups and the professionals under a superclass since their IDs (primary keys) are in different format.
so these are the tables i got after normalisation
session[sessionId(PK), duration, title and datetime]
StudentGroups [studentGroupID(PK), groupName, LevelOfExp)
Professionals [ profID (PK), name, rank, baseDistrict]
StudentAttendance [sessionID, studentID (Composite PK)]
ProfessionalAttendance [profID, studentID (composite PK)]
When the number of entities increase, the number of "attendance" tables also increases worrying me. is there a way i can have all the attendance info in one table ?
please comment
a training program has sessions. these sessions are attended by 2 different groups of people. one group can attend more than one session while a session can have more than one group of attendants.
i have 3 important entities for this matter.
session entity has [sessionId(PK), duration, title and datetime]
StudentGroups [studentGroupID(PK), groupName, LevelOfExp)
Professionals [ profID (PK), name, rank, baseDistrict]
so there are m:n relationships between session entity and the following 2 entities. i cannot take the student groups and the professionals under a superclass since their IDs (primary keys) are in different format.
so these are the tables i got after normalisation
session[sessionId(PK), duration, title and datetime]
StudentGroups [studentGroupID(PK), groupName, LevelOfExp)
Professionals [ profID (PK), name, rank, baseDistrict]
StudentAttendance [sessionID, studentID (Composite PK)]
ProfessionalAttendance [profID, studentID (composite PK)]
When the number of entities increase, the number of "attendance" tables also increases worrying me. is there a way i can have all the attendance info in one table ?
please comment