SQLzoo.net

Replace a NULL with a specific value

Postgres
The SQL standard is COALESCE


Specific to Postgres
COALESCE takes any number of arguments, it returns the first which is not null.

Related links:

  • FUNCTIONS