🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: ER Model: all 10 questions

Quiz: ER Model · Question 5 of 10

Department (1) — Employee (N). Where does the foreign key go?

Department (1) — Employee (N). Where does the foreign key go?

  1. A.In the department table
  2. B.In the employee table (dept_id)
  3. C.In both tables
  4. D.In a new table only
Answer & explanation

Correct answer: In the employee table (dept_id)

The foreign key goes on the "many" side: each employee row stores its dept_id.

Can you get the rest right without peeking?

Take the timed Quiz: ER Model quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →