NULLIF
Purpose
This function returns the value NULL
, if two expressions are identical. Otherwise, the first expression is returned.
Syntax
nullif::=
Usage Notes
The NULLIF
function is equivalent to the CASE
expression CASE WHEN expr1=expr2 THEN NULL
ELSE expr1 END
.