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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

nvl use on something that may not return a record

789736Oct 10 2013 — edited Oct 10 2013
Hi guys, im hjaving issues in that a bit of sql I am using nvl on is not working if the record I am retrieving does not exist.  ie in my nvl I am selectign a value froma  table in which the record does not exist, if it does exist I will use the value returned, if the record does not exist I wish to use a different value.  However it appears that if the record doesnt exist the nvl (or decode) wont work.  Is there any way around this?

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 7 2013
Added on Oct 10 2013
3 comments
1,470 views