2 9.1. Logical Operators #
4 The usual logical operators are available:
5 boolean AND boolean → boolean
6 boolean OR boolean → boolean
9 SQL uses a three-valued logic system with true, false, and null, which
10 represents “unknown”. Observe the following truth tables:
15 FALSE FALSE FALSE FALSE
24 The operators AND and OR are commutative, that is, you can switch the
25 left and right operands without affecting the result. (However, it is
26 not guaranteed that the left operand is evaluated before the right
27 operand. See Section 4.2.14 for more information about the order of
28 evaluation of subexpressions.)