📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

A table Student(StudentID, CourseID, CourseName, Grade) with key (StudentID, CourseID) violates:

A. BCNF only
B. 3NF only
C. 2NF because CourseName depends only on CourseID ✅
D. 1NF only

Correct Answer: C. 2NF because CourseName depends only on CourseID

Explanation

  • CourseName depends on part of the composite key (CourseID), a partial dependency.
  • Moving CourseName to a Course table fixes it.