NVLThe NVL function substitutes an alternate value for a NULL value.
Both the parameters are mandatory. Note that NVL function works with all types of data types. And also that the data type of original string and the replacement must be in compatible state i.e. either same or implicitly convertible by Oracle.
NVL( Arg1, replace_with )
The SELECT statement below will display 'n/a' if an employee has been not assigned to any job yet i.e. JOB_ID is NULL. Otherwise, it would display the actual JOB_ID value.
Read more: Conv. Func.
SELECT first_name, NVL(JOB_ID, 'n/a') FROM employees;