Difficulty: Easy
Correct Answer: primary key
Explanation:
Introduction / Context:
Entity-Relationship (ER) modeling captures real-world entities and their identifiers. When converting an ER model into relational tables, each entity becomes a table and its identifier becomes the table's primary key, ensuring row-level uniqueness and stable referencing from related tables.
Given Data / Assumptions:
Concept / Approach:
The primary key uniquely identifies each row in the relational table that represents the entity. Relationships are implemented using foreign keys that reference these primary keys. Alternate keys can exist but are not the chosen primary key; identities/serials are one way to implement a surrogate primary key.
Step-by-Step Solution:
Verification / Alternative check:
Confirm that the primary key prevents duplicates and provides a target for referential constraints from child tables.
Why Other Options Are Wrong:
Common Pitfalls:
Choosing a non-stable attribute (like mutable names) as the primary key can cause cascading updates. Prefer stable natural keys or surrogate keys as appropriate.
Final Answer:
primary key
Discussion & Comments