📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which mapping is correct for Student (M) to Course (N)?

A. StudentID as a foreign key in Course
B. A junction table Enrolment with StudentID and CourseID ✅
C. CourseID as a foreign key in Student
D. StudentID as the primary key of Course

Correct Answer: B. A junction table Enrolment with StudentID and CourseID

Explanation

A many-to-many link needs a junction table, because neither side can hold a list of the other.