nullif

Returns null if "string_expression1" equals "string_expression2" (case-insensitive), otherwise returns "string_expression1".

Syntax

nullif ( string_expression1 , string_expression2 )