1. Home
  2. Data Science
  3. SQL for Data Analysis
  4. What does the predicate x = NULL evaluate to?

Added 30 Nov -0001

What does the predicate x = NULL evaluate to?

  1. False, but the row is returned
  2. An error during execution
  3. Unknown, so no row is returned Correct answer
  4. True, whenever x is NULL

Correct answer

C. Unknown, so no row is returned

18 views

MCQSEXAM

Explanation

Any comparison with NULL yields UNKNOWN, so the row fails the test; IS NULL is the correct predicate.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More SQL for Data Analysis MCQs

Practise all SQL for Data Analysis MCQs

Similar MCQs