0
0
SQLquery~5 mins

NULL in AND, OR, NOT logic in SQL - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
ATRUE
BError
CFALSE
DNULL
What is the result of FALSE OR NULL in SQL?
ATRUE
BFALSE
CNULL
DError
What does NOT NULL evaluate to in SQL?
AFALSE
BNULL
CTRUE
DError
In SQL, NULL means:
AUnknown or missing value
BEmpty string
CZero
DFalse
Which logic system does SQL use for NULL values?
AThree-valued logic
BTwo-valued logic
CBoolean logic only
DNo logic
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.