IFNULL
Accepts exactly two arguments and returns the first non NULL argument, can be used to substitute a default value for a NULL value.
The
IFNULLfunction is equivalent to theCOALESCEfunction with two arguments only, theCOALESCEfunction can have more than two arguments.
See also:
[SELECT] [COALESCE] [NULLIF]
Syntax
SELECT IFNULL(expression1, expression2) FROM <multipartIdentifier>;