Session
SessionId (PK) SessionName SessionDuration TotalMarks SessionWeight ModuleId (FK)
1 AAA 01:00:00 30 20 1
Penalty
SessionId (PK) PenaltyEnalbed
1 1
My question is that as SessionId in Penalty Table refers to the Session Table, should SessionId in penalty table be a primary key or a foriegn key?
it should be foreign key but in penalty there should also be an Id to set as primary key. So in penalty it should be ID(PK) SessionId (FK) PenaltyEnalbed