Logical values, by definition, consist of two options: True and False, or their representation as 1/0, ON / OFF, YES / NO, etc.
Many database systems also allow you to store NULL values ββin fields designated as Boolean so that they can represent three values: Yes, No, and Unknown (NULL).
Boolean operators are AND, OR, and NOT.
Comparison operators are some form of EQUALS or NOT EQUALS.
Operations with TRUE / FALSE values ββat both ends are obvious:
TRUE or FALSE β TRUE
NOT TRUE β FALSE
TRUE = TRUE β TRUE
What it gets is the consequences of adding a NULL value (Unknown):
TRUE or UNKNOWN (NULL) β ??? NOT UNKNOWN (NULL) β ???
TRUE = UNKNOWN (NULL) β ???
Johnfx
source share