Skip to main content

Logical operators

Effect of NULL on logical operators

The result of an AND comparison may be NULL if one or both sides of the expression are NULL. If at least one side of an AND operator is FALSE the expression evaluates to FALSE:
The result of an OR comparison may be NULL if one or both sides of the expression are NULL. If at least one side of an OR operator is TRUE the expression evaluates to TRUE:
The following truth table demonstrates the handling of NULL in AND and OR: The logical complement of NULL is NULL as shown in the following example:
The following truth table demonstrates the handling of NULL in NOT: