📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Why should NULL not be used to mean ‘not applicable’ and ‘unknown’ interchangeably?

A. Because NULL cannot be indexed
B. Because NULL is always converted to zero
C. Because storage is wasted
D. Because the two meanings cannot be distinguished and queries may misinterpret the data ✅

Correct Answer: D. Because the two meanings cannot be distinguished and queries may misinterpret the data

Explanation

  • NULL carries only one meaning in SQL, so mixing meanings makes queries ambiguous.
  • Use a separate status column if the distinction matters.