DB2 Scalar functions - COALESCE
The COALESCE function returns the first non-null expression in a list of expressions.
The schema is SYSIBM.
The arguments are evaluated in the order in which they are specified, and the result of the function is the first argument that is not null. If all the arguments are null, the result is null.
SELECT DEPTNO , DEPTNAME , COALESCE(MGRNO, 'ABSENT') , ADMRDEPT FROM DEPARTMENT
SELECT EMPNO , COALESCE(SALARY, 0) FROM EMPLOYEE
COALESCE(c1,10)