A prime attribute of a relation scheme is an attribute that appears
View worked solution
Answer: B
In relational database design, attributes of a relation schema are classified based on their participation in candidate keys:
- Prime Attribute: An attribute that is a part of at least one candidate key of . That is, it appears in some candidate key of .
- Non-prime Attribute: An attribute that does not appear in any candidate key of .
Let's evaluate the options:
- Option A: Incorrect. An attribute does not need to be present in every candidate key to be prime; being part of any single candidate key is sufficient.
- Option B: Correct. This is the standard definition of a prime attribute.
- Option C: Incorrect. Foreign keys represent referential constraints and are independent of whether an attribute is prime.
- Option D: Incorrect. A primary key is just one chosen candidate key. Prime attributes can belong to any candidate key of the relation.
Free practice · Your answers on this page are not saved.
