📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What does a PRIMARY KEY constraint guarantee?

A. Values must be text only
B. Values may repeat but not be NULL
C. The column is indexed but may contain duplicates
D. Each row is uniquely identified and the key cannot be NULL ✅

Correct Answer: D. Each row is uniquely identified and the key cannot be NULL

Explanation

  • A primary key uniquely identifies each row and cannot contain NULL.
  • It combines uniqueness with NOT NULL.