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. The primary keys are underlined. Identify all possible foreign key(s) from the options based only on the two Q 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 DEPT's primary key did, so did is the foreign key.

More Database Management Systems questions