The nullif Function
> select nullif(0, 0);
nullif
--------
ΓΈ
(1 row)> select nullif(1, 0);
nullif
--------
1
(1 row)> select coalesce(nullif(0, 0), 1);
coalesce
----------
1
(1 row)Last updated
> select nullif(0, 0);
nullif
--------
ΓΈ
(1 row)> select nullif(1, 0);
nullif
--------
1
(1 row)> select coalesce(nullif(0, 0), 1);
coalesce
----------
1
(1 row)Last updated