NULLIF

NULLIF(aValue, bValue)

Description

Returns NULL if 'a' is equals to 'b', otherwise 'a'.

Examples

NULLIF(A, B)