NULLIF
Description
Sample Source Pattern
Syntax
ISNULL ( check_expression , replacement_value ) NULLIF( <expr1> , <expr2> )Examples
SELECT NULLIF(6,9) AS RESULT1, NULLIF(5,5) AS RESULT2;RESULT1|RESULT2|
-------+-------+
6| NULL|SELECT NULLIF(6,9) AS RESULT1, NULLIF(5,5) AS RESULT2;RESULT1|RESULT2|
-------+-------+
6| NULL|Last updated
Was this helpful?