Databases · Junior · Question 14 of 75

What does WHERE email = NULL return?

Explanation

NULL means 'unknown', so NULL = NULL is also unknown. Use IS NULL / IS NOT NULL, or IS DISTINCT FROM for NULL-safe comparison.

Further reading

Problem with a question

Databases · Junior · question 14

Test yourself

Take the Databases · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz