I have 2 tables
EXAM
(StudentID, SubjectID, SchoolYear, Period, Mark
) andCANCELED
_EXAM (StudentID, SubjectID, SchoolYear, Period
).
Primary key for both tables are (StudentID, SubjectID, SchoolYear, Period
).
When a student wants to take an exam, then we write one row in EXAM
table.
But if a student passed an exam and is not satisfied, then he wants to cancel the exam and we need to write one row in table CANCELED_EXAM
.
My question is: How to select just non-canceled exams from table EXAM
.