GATE / CS ARCHIVE

GATE CSE 2014 SET 3 / QUESTION 22

GATE CSE 2014 Set 3 Q22

Database Management Systems · Functional Dependencies & Keys · Full GATE CSE 2014 Set 3 paper

GATE 2014 Set 3, Q22 1 mark · MCQ
Report issue

Functional Dependencies & Keys

Question 22, GATE 2014: A prime attribute of a relation R belongs to which set? A every candidate key; B some candidate key; C a foreign key; D only the primary key.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Step 1: A candidate key is a minimal attribute set that uniquely identifies a tuple. A relation may have several such sets. Step 2: An attribute is prime if it appears in at least one candidate key, including a candidate key not chosen as primary. Therefore B is the definition. Step 3: Requiring membership in every key is too strong. Foreign-key membership is unrelated, and selection of a primary key does not change which attributes are prime.

Original paper, page 57 · Answer key