Which of the following can uniquely identify the tuples of a relation in a database?
(A) Foreign Key
(B) Primary Key
(C) Candidate Key
(D) Composite Primary Key
Which of the following can uniquely identify the tuples of a relation in a database?
(A) Foreign Key
(B) Primary Key
(C) Candidate Key
(D) Composite Primary Key
Solution
A primary key, a candidate key and a composite primary key can each uniquely identify every tuple in a relation.
A candidate key is a minimal set of attributes whose values are unique for each tuple, and the primary key is the candidate key chosen to identify tuples. A composite primary key is a primary key made of two or more attributes that are unique together.
Foreign key (A): it only links to the primary key of another relation. Its values can repeat and can be NULL, so it does not identify tuples uniquely. For example, many students can share the same department ID.
Related questions:
2026: 24 May Shift 1
2026: 13 May Shift 2
2026: 23 May Shift 1
2025: 20 May Shift 1
2026: 29 May Shift 1
2025: 20 May Shift 1