Microsoft
Software
Hardware
Network
Question : NVL, case statement, or another way?
I am running nested queries with NVL but not getting the results I want. I want the reason to show why someone didnt take a test, but if they did then show their score. I am getting the reason, but the score isnt showing when the reason is blank. Is there another way to achieve this or am I using NVL wrongly?
select
nvl((select justify from tech b where a.emplid=b.emplid),(select
score from tech2 b where a.emplid =b.emplid) )as Score
from
employees a
Answer : NVL, case statement, or another way?
You can use coalesce to retrieve the first non-null value. See attached.
Random Solutions
how to determine style.display value
How do I charge for a job?
Internet explorer registry to prevent the startup of add-on toolbars
Dynamics AX 2009 - AOS Performance
map with push pins
How do I add a due date column, and sort by the document date in AR Statements?
How can i add column name in list generic?
Change CAS array name in exchange 2010
How can I reference information from one sheet to another by values selected in a drop down menu
How can I prevent changes to web browser proxy settings?