📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Why would a designer use UNIQUE instead of PRIMARY KEY for a PassportNo column?

A. Because PassportNo can be NULL in every row
B. Because the table already has a different primary key, such as an internal ID ✅
C. Because UNIQUE is faster than any index
D. Because PassportNo values repeat

Correct Answer: B. Because the table already has a different primary key, such as an internal ID

Explanation

A table can have only one primary key, so other naturally unique columns are protected with UNIQUE.