📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

A school has Classes and Students. One class has many students and each student is in one class. Where does the foreign key go?

A. In the Class table, referencing Student
B. In a junction table
C. In the Student table, referencing Class ✅
D. In both tables

Correct Answer: C. In the Student table, referencing Class

Explanation

The many side, Student, holds ClassID as a foreign key pointing to the one side, Class.