if i have a decode statement such as:
DECODE(function call 1, 'Y', function call 2)
Will function call 2 always be made or only when function call 1 = 'Y' ?
Yes...and if the result of "function call 1" is not 'Y', then the DECODE result is NULL, since you did not include a final, "no match" argument in the DECODE to specify what result you want if none of the previous explicit-compare values match the result of "function call 1".
Does this answer your question, or have you follow-on questions?
Mufasa
(aka Dave of Sandy, Utah, USA)
[I can provide you with low-cost, remote Database Administration services: see our website and contact me via www.dasages.com]
Thanks, that is what I thought, but wasn't sure. I am a convert from MS SQL and still learning the in's and out's of Oracle. I've inherited a huge view with a dozen function calls and have to figure out how to make it run faster, so I am just trying to understand what is happening now.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.