📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Why do designers often keep a natural key as UNIQUE even when using a surrogate primary key?

A. To make the natural key the foreign key
B. To remove the need for an index
C. To allow duplicate natural values
D. To preserve the real-world uniqueness rule while using a stable internal identifier ✅

Correct Answer: D. To preserve the real-world uniqueness rule while using a stable internal identifier

Explanation

Keeping CNIC or email UNIQUE enforces its real uniqueness without making it the primary key.