The AND, OR, NOT, and IS logical operators of SQL work in three-valued logic.
These tables show the three-valued logic.
AND |
TRUE |
FALSE |
UNKNOWN |
---|---|---|---|
TRUE |
TRUE |
FALSE |
UNKNOWN |
FALSE |
FALSE |
FALSE |
FALSE |
UNKNOWN |
UNKNOWN |
FALSE |
UNKNOWN |