Question 1
4 marksIn the enrolment table below, identify its composite key, one partial dependency and the transitive dependency removed for 3NF. [4 marks]
Enrolment relation and its business rules
There is one enrolment per student/course pair, one current tutor per course and one name per student or tutor identifier. Grade depends on the whole student/course pair.
The stated functional dependencies are StudentId → StudentName; CourseId → CourseTitle, TutorId; TutorId → TutorName; (StudentId, CourseId) → Grade. Treat these as business rules, rather than inferring dependencies from the sample rows.
| StudentId | StudentName | CourseId | CourseTitle | TutorId | TutorName | Grade |
|---|---|---|---|---|---|---|
| S01 | Ada | C10 | Algorithms | T02 | Iqbal | 78 |
| S01 | Ada | C20 | Networks | T03 | Patel | 86 |
| S02 | Nia | C10 | Algorithms | T02 | Iqbal | 91 |
Show solution and marking guidance
Indicative answer
- The pair (StudentId, CourseId) is the key (1). StudentId → StudentName or CourseId → CourseTitle/TutorId is partial because it uses only part of that key (1). CourseId → TutorId (1) and TutorId → TutorName (1) give the transitive dependency.