What does the predicate x = NULL evaluate to?
-
A
False, but the row is returned
-
B
An error during execution
-
C
Unknown, so no row is returned
Correct answer
-
D
True, whenever x is NULL
Correct answer
C. Unknown, so no row is returned
18 views
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
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ