NULLIF()
Conditional NULL function
Depends on input
NULLIF (<exp1>, <exp2>)
| Parameter | Description |
|---|---|
exp1 |
An expression |
exp2 |
Another expression of a data type compatible with exp1 |
NULLIF returns the value of the first argument, unless it is equal to the second.In that case, NULL is returned.