I need to display Employee last_name and their commission amount from employees table in Oracle SQL, but the condition is if it encounter NULL valu
last_name
NULL
Another alternative, quite simple and precise:
nvl(to_char(commision_pct), 'No Commission')
Since, commision_pct is NUMBER data type, to_char will explicitly convert it into string.
commision_pct
to_char