📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

A designer is choosing between a 13-digit national ID and an auto-number as the primary key for a large table with many child tables. What is the strongest argument for the auto-number?

A. It is more meaningful to users
B. It is shorter, stable and faster to use as a foreign key in many child tables ✅
C. It can be remembered easily
D. It is always unique in every country

Correct Answer: B. It is shorter, stable and faster to use as a foreign key in many child tables

Explanation

A short numeric surrogate key is copied into every child table, so it keeps foreign keys small and joins fast compared with a long text or numeric natural key.