IS NULL
NULL test
What changes
- Input
- an expression
- Output or change
- TRUE or FALSE
- Return type
- Boolean
Syntax at a glance
expression IS [ NOT ] NULL
Work example
A data-quality report must find missing values rather than compare them with an ordinary value.
Test one NULL and one non-NULL row. Do not replace IS NULL with equals NULL.
Check your work IS NULL. Only the NULL row passes the filter.
Practice SQL
Open in SQL FlowSELECT Value FROM (VALUES (1), (NULL)) AS Items(Value) WHERE Value IS NULL;
Open Microsoft Learn for full syntax, permissions, and details for your version.