Internal site. Jolli authentication required to view.
Skip to Content
SqlBoolean Operations

Last Updated: 5/8/2026


There are two Boolean literals: TRUE and FALSE.

We support the following Boolean operations:

OR

The following truth table defines the OR operator:

TRUEFALSENULL
TRUETRUETRUETRUE
FALSETRUEFALSENULL
NULLTRUENULLNULL

AND

The following truth table defines the AND operator:

TRUEFALSENULL
TRUETRUEFALSENULL
FALSEFALSEFALSEFALSE
NULLNULLFALSENULL

NOT

The following table defines the NOT operator:

TRUEFALSE
FALSETRUE
NULLNULL

IS FALSE

The following table defines the IS FALSE operator:

TRUEFALSE
FALSETRUE
NULLFALSE

IS NOT FALSE

The following table defines the IS NOT FALSE operator:

TRUEFALSE
FALSETRUE
NULLTRUE

IS TRUE

The following table defines the IS TRUE operator:

TRUETRUE
FALSEFALSE
NULLFALSE

IS NOT TRUE

The following table defines the IS NOT TRUE operator:

TRUEFALSE
FALSETRUE
NULLTRUE

Casting a string to a Boolean value produces the result true for any string which spells ‘true’ when converted to lowercase. Any other non-null string produces the result false.

<Callout type=“info”>

Notice that not all Boolean operations produce NULL results when an operand is NULL. </Callout>