The SQLite ifnull()
function allows you to replace NULL values with another value.
It takes two arguments, and it returns a copy of its first non-NULL argument, or NULL if both arguments are NULL.
The ifnull()
function is equivalent to coalesce()
with two arguments.