NULLIF
Description
Returns a null value if the two specified expressions are equal. (NULLIF in Transact-SQL).
Sample Source Pattern
Syntax
ISNULL ( check_expression , replacement_value )
Examples
Code:
SELECT NULLIF(6,9) AS RESULT1, NULLIF(5,5) AS RESULT2;
Result:
RESULT1|RESULT2|
-------+-------+
6| NULL|
Last updated
Was this helpful?