GATE / CS ARCHIVE

GATE CSE 1994 / QUESTION 3.7

Distinct values in one database instance

Database Management Systems · Functional Dependencies & Keys · Full GATE CSE 1994 paper

GATE 1994, Q3.7 Descriptive
Report issue

Functional Dependencies & Keys

Question 3.7, GATE 1994: One instance of R(A,B,C) has distinct values for A. Can A be concluded to be a candidate key for the schema?
Tap to enlarge
Answer & solution

Answer: No (no official key was published)

A candidate key is a schema-level guarantee: it must uniquely identify rows in every legal instance and be minimal among such attribute sets. Distinct A values in one observed instance show only that A happens to be unique there. For example rows (1,x,u),(2,y,v) are consistent with no uniqueness constraint on A; a later legal row (1,z,w) could repeat it. Therefore one instance does not establish the functional dependency A→BC or candidate-key status.

Original paper, page 4