ConditionalSQL standard
NULLIF
Returns NULL if two values are equal, otherwise the first value.
Syntax
NULLIF(<value>, <compare with>)
Compares two arguments: if they're equal, it returns NULL; if not, the first one unchanged. Sounds odd, but it's a handy way to turn a special value into NULL: a zero before division or an empty string before COALESCE.