In SQLite, the coalesce()
function returns a copy of its first non-NULL argument, or NULL if all arguments are NULL.
It’s similar to the ifnull()
function, except that coalesce()
accepts more than two arguments (ifnull()
only accepts two arguments).