There is no equivalent to the Oracle\'s DECODE()\'Function InPostgres`. Is there anyone who wrote decode as a Function?
Oracle
DECODE()\'Function In
You can combine NULLIF with COALESCE:
SELECT COALESCE(NULLIF(value, 0), newValue) FROM table;
Font: Coalesce for zero instead of null