Null Handling Functions
isNull
isNull(col)SELECT orderId, isNull(discount) AS has_no_discount
FROM orders
WHERE isNull(discount)
LIMIT 10isNotNull
isNotNull(col)SELECT orderId, total
FROM orders
WHERE isNotNull(couponCode)
LIMIT 10isDistinctFrom
isNotDistinctFrom
coalesce
caseWhen
nullIf
AND
a
b
a AND b
OR
a
b
a OR b
NOT
a
NOT a
Last updated
Was this helpful?

