Form compound conditions
To connect two or more comparison conditions, or Boolean
expressions, use the logical operators AND, OR, and NOT. A
Boolean expression evaluates as true
or false
or,
if NULL values are involved, as unknown
.
In
the following query, the operator AND combines two comparison expressions
in the WHERE clause.
The query returns all rows that have NULL paid_date or
a NOT NULL ship_date.