ifNull
Returns the result of checking for a non-NULL expression.
Syntax
ifNull(<type> expr a, <type> expr b)- a: expression evaluating to
string,dateortimestamp -
b: expression evaluating to
string,dateortimestampReturns
string,dateortimestamp
Description
Function ifNull returns the first expression a if it is not NULL. If the first expression is NULL, it returns the second, b. Expressions returning string, date or timestamp are allowed.