Hi there,
According to the specification of q3 "note that a student may fail a course and
take it again, thus we need to count duplicate courses" we should count the duplicate courses.
However, the PK of course_enrolments is student_id and course_id which means the duplicates will never happen. And it sounds logical that if a student failed in a course they may enroll in another course in the same subject.
So, does this means we don't need to worry about duplicates when checking if a student takes at least num_courses courses and records with same subject code may be returned?
Regards,
Teng