Difficulty: Easy
Correct Answer: first step.
Explanation:
Introduction / Context:
Reverse-engineering a database begins with understanding its identifiers and relationships. Primary keys uniquely identify rows and anchor the rest of the design analysis, so they are found at the start of the assessment process.
Given Data / Assumptions:
Concept / Approach:
A sensible sequence is: (1) determine primary keys, (2) determine foreign keys, (3) assess referential integrity, and (4) analyze functional dependencies to guide normalization and clean-up. Identifying primary keys first clarifies entity boundaries and prevents confusion when evaluating foreign keys and dependencies later.
Step-by-Step Solution:
Verification / Alternative check:
Run DISTINCT counts and NULL checks; the primary key should show count(rows) = count(DISTINCT key) and contain no NULLs.
Why Other Options Are Wrong:
Later steps rely on knowing the primary keys; placing this task second, third, or fourth is inefficient and error-prone.
Common Pitfalls:
Accepting surrogate IDs as sole keys without checking natural key constraints; overlooking composite keys already used by the data.
Final Answer:
first step.
Discussion & Comments