Hi guys,
I am making 3 tables but I am a bit confused in how to setup the relationship between them.
Here are my table:
tblStudent:
StudentID - PK
Student Number
Full Name
tblSubject:
SubjectID - PK
StudentID
Subject Type
ErrorID???
tblError:
ErrorID - PK
SubjectID
Subject Type??
Error Reason
My scenarios are:
There are list of student. (Student ID)
Each student have different homework (SubjectID) which can be : Math, Physic, Science (Subject Type).
Now, my problem is the error.. Is the error depends on the SubjectID ? or the error depends on ErrorID??
Should I link the :
tblSubject:[SubjectID] ->tblError:[SubjectID] ??
or
tblSubject:[ErrorID] ->tblError:[ErrorID] ??
Please help thanks.
I am making 3 tables but I am a bit confused in how to setup the relationship between them.
Here are my table:
tblStudent:
StudentID - PK
Student Number
Full Name
tblSubject:
SubjectID - PK
StudentID
Subject Type
ErrorID???
tblError:
ErrorID - PK
SubjectID
Subject Type??
Error Reason
My scenarios are:
There are list of student. (Student ID)
Each student have different homework (SubjectID) which can be : Math, Physic, Science (Subject Type).
Now, my problem is the error.. Is the error depends on the SubjectID ? or the error depends on ErrorID??
Should I link the :
tblSubject:[SubjectID] ->tblError:[SubjectID] ??
or
tblSubject:[ErrorID] ->tblError:[ErrorID] ??
Please help thanks.
