logo

Question detail

A relation Enrolment(StudentID, StudentName, CourseID, CourseName, Grade) has a composite primary key of StudentID and CourseID. Which decomposition best supports third normal form?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Database design and normalisation techniques

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?.

  1. A.Student(StudentID, StudentName), Course(CourseID, CourseName), Enrolment(StudentID, CourseID, Grade)
  2. B.Student(StudentID, StudentName, CourseID), Course(CourseID, CourseName, Grade)
  3. C.Enrolment(StudentID, StudentName, CourseID, CourseName, Grade) with no changes
  4. D.Student(StudentName), Course(CourseName), Enrolment(StudentID, CourseID, Grade)

Model answer

What a good answer should say

  • Student(StudentID, StudentName), Course(CourseID, CourseName), Enrolment(StudentID, CourseID, Grade)

Explanation

Why this works

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.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.