Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

IS NOT NULL vs <> NULL

metalrayOct 1 2009 — edited Oct 2 2009
What is the difference betwen IS NOT NULL and <> NULL ?


SELECT ename, NVL(salary * comm_pct, 0)
FROM emp
WHERE comm_pct IS NOT NULL;


ENAME NVL(SALARY*COMM_PCT,0)
------------------------- ----------------------
Bob 44
Mike 56




SELECT ename, NVL(salary * comm_pct, 0)
FROM emp
WHERE comm_pct <> NULL;

ENAME NVL(SALARY*COMM_PCT,0)
------------------------- ----------------------

0 rows selected
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 30 2009
Added on Oct 1 2009
5 comments
1,093 views