Recall & Review
beginner
What does NULL represent in SQL?
NULL means unknown or missing value. It is not the same as zero or empty string.
Click to reveal answer
beginner
What is the result of TRUE AND NULL in SQL?
The result is NULL because the unknown value could be TRUE or FALSE, so the whole expression is unknown.
Click to reveal answer
beginner
What is the result of FALSE OR NULL in SQL?
The result is NULL because the unknown value might be TRUE, so the whole expression is unknown.
Click to reveal answer
intermediate
What does NOT NULL evaluate to in SQL?
NOT NULL is still NULL because negation of unknown remains unknown.
Click to reveal answer
intermediate
How does SQL treat NULL in logical expressions compared to TRUE or FALSE?
SQL uses three-valued logic: TRUE, FALSE, and UNKNOWN (NULL). NULL means the truth is unknown, affecting AND, OR, NOT results.
Click to reveal answer
What is the result of TRUE AND NULL in SQL?
✗ Incorrect
TRUE AND NULL results in NULL because the unknown value could be TRUE or FALSE.
What is the result of FALSE OR NULL in SQL?
✗ Incorrect
FALSE OR NULL results in NULL because the unknown value might be TRUE.
What does NOT NULL evaluate to in SQL?
✗ Incorrect
NOT NULL remains NULL because negation of unknown is still unknown.
In SQL, NULL means:
✗ Incorrect
NULL represents unknown or missing data, not zero or empty string.
Which logic system does SQL use for NULL values?
✗ Incorrect
SQL uses three-valued logic: TRUE, FALSE, and UNKNOWN (NULL).
Explain how NULL affects the results of AND, OR, and NOT operations in SQL.
Think about how unknown values change logical outcomes.
You got /5 concepts.
Describe the difference between NULL and FALSE in SQL logical expressions.
Consider how SQL treats missing information.
You got /4 concepts.