NULLIF Function for Abbreviated CASE Expressions

The NULLIF function provides a way to write some CASE statements in short form.

The syntax for NULLIF is as follows:

NULLIFexpression-1, expression-2 )

NULLIF compares the values of the two expressions. If the first expression equals the second expression, NULLIF returns NULL. If the first expression does not equal the second expression, NULLIF returns the first expression.

Related reference
CASE Expressions
NULLIF Function [Miscellaneous]