Logical operators

Logical operators return the result of a particular Boolean operation on one or two input expressions.

They can only be used as a predicate (e.g. in the WHERE clause). Input expressions must be predicates.

List of logical operators

OperatorSyntaxDescription
ANDa AND bMatches both expressions.
ORa OR bMatches either expression.
NOTNOT aDoes not match the expression.