Sunday, October 31, 2010

How to add a number to null in Oracle?

select ename, sal, comm, sal+COALESCE(comm,0) as total_compensation from emp;

Click here for the screenshot.

--Moid

No comments:

Post a Comment

Followers