All mock tests are FREE till 31 December — register to save your progress
Unit 4 · Database Management Systems Paper 2 CS · December 2022 Shift 2

Consider the two relations below (primary keys: EMP.eid and DEPT.did). Identify all possible foreign key(s) based only on the two relations.
EMP (eid, ename, did)
DEPT (did, dname)

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. did

Explanation

EMP.did refers to the primary key of DEPT, so did is the only foreign key.

More Database Management Systems questions