scalar
COALESCE
Returns the first non-NULL expression; arguments must resolve to a compatible type in PostgreSQL. Example target: PostgreSQL 17. No tables or extensions required.
Formal Syntax & Structure
sql syntaxsql
COALESCE(a,b,...)Working Example
Example Snippetsql
SELECT coalesce(NULL,0,8);