UGC-NET Jun 2019 · Normal Forms (1NF, 2NF, 3NF, BCNF)

MCQ · 2 marks · Problem DBMS-NORM-0006

Which of the following key constraints is required for functioning of foreign key in the context relational databases?
  1. A
    Unique key
  2. B
    Primary key
  3. C
    Candidate key
  4. D
    Check key

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solutionA foreign key value must match a value that identifies exactly one tuple in the referenced relation. This is normally that relation's primary key, as in REFERENCES table(primary key). Referential integrity is defined on that key.(A) A unique key alone allows NULLs and is not the standard target — incorrect as the general requirement.(C) A candidate key that is not chosen as primary key is not the standard target either — incorrect.(D) A check constraint restricts the values in a column — incorrect.Answer: B

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com