NULLIF

SQL NULLIF #

Null if two values are equivalent. Otherwise, return the first.

SELECT NULLIF('a', 'a');