📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Why can a UNIQUE column contain a NULL in many database systems?

A. Because UNIQUE ignores all values
B. Because NULL is stored as zero
C. Because NULL is treated as a distinct unknown value, not as equal to another NULL ✅
D. Because UNIQUE only applies to text

Correct Answer: C. Because NULL is treated as a distinct unknown value, not as equal to another NULL

Explanation

  • Most systems allow one or more NULLs in a UNIQUE column because NULLs are not considered equal to each other.
  • Exact behaviour varies, so check the specific DBMS.