Difficulty: Easy
Correct Answer: Incorrect — a primary key is a chosen candidate key and may be single-attribute
Explanation:
Introduction / Context:
Keys are central to relational integrity. The primary key is the designated unique identifier, selected from the set of candidate keys. This question tests whether the primary key must necessarily be “composite.”
Given Data / Assumptions:
Concept / Approach:
The definition of primary key does not require compositeness. A primary key can be a single attribute (e.g., roll_no) or a composite (e.g., order_id + line_no). What distinguishes a primary key from other candidate keys is the choice for identification and referential referencing, not the number of attributes.
Step-by-Step Solution:
Verification / Alternative check:
Typical tables have single-attribute primary keys (e.g., id SERIAL/IDENTITY). Composite primary keys exist but are not mandatory.
Why Other Options Are Wrong:
Common Pitfalls:
Equating “primary” with “composite”; assuming surrogate keys are required.
Final Answer:
Incorrect — a primary key is a chosen candidate key and may be single-attribute
Discussion & Comments