Exam-style question
Try this first
A relation Enrolment(StudentID, StudentName, CourseID, CourseName, Grade) has a composite primary key of StudentID and CourseID. Which decomposition best supports third normal form?.
- A.Student(StudentID, StudentName), Course(CourseID, CourseName), Enrolment(StudentID, CourseID, Grade)
- B.Student(StudentID, StudentName, CourseID), Course(CourseID, CourseName, Grade)
- C.Enrolment(StudentID, StudentName, CourseID, CourseName, Grade) with no changes
- D.Student(StudentName), Course(CourseName), Enrolment(StudentID, CourseID, Grade)
Answer and explanation
Concise answer
Student(StudentID, StudentName), Course(CourseID, CourseName), Enrolment(StudentID, CourseID, Grade)
Why this is correct
StudentName depends on StudentID, CourseName depends on CourseID, and Grade depends on the whole composite key. Separating these dependencies removes partial dependencies and supports 3NF.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
