Difficulty: Easy
Correct Answer: second step.
Explanation:
Introduction / Context:
Foreign keys connect child tables to parent tables and are essential to understanding the database's business relationships. They should be identified immediately after establishing each table's primary key.
Given Data / Assumptions:
Concept / Approach:
Once primary keys are known, scan for columns in other tables that match the key's data type and semantics. These candidate foreign keys establish parent-child relationships and inform join paths and cardinalities for subsequent analysis and cleanup.
Step-by-Step Solution:
Verification / Alternative check:
Use counts and distinct checks to see whether each child column's values are subsets of the referenced primary key values before enforcing constraints.
Why Other Options Are Wrong:
First step: requires known parents; third/fourth: delays understanding of relationships needed for validation and normalization.
Common Pitfalls:
Assuming all ID-suffixed columns are foreign keys; overlooking composite keys or mismatched collations/data types.
Final Answer:
second step.
Discussion & Comments