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!

Compare two null dates

600830Mar 10 2008 — edited Mar 12 2008

Hi,
I'm trying to compare two dates that are null. I would like to exclude them if they're equal to null. This doesn't seem to work.

SELECT entry_dt, exit_dt
FROM SCH_ENROLLMENT
WHERE nvl(exit_dt,' ') != nvl(entry_dt,' ');

How can I fix it?

Thanks.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 9 2008
Added on Mar 10 2008
23 comments
12,843 views