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
Should I make a Drupal Theme from scratch?
PXE-E55: ProxyDHCP service did not reply to request on port 4011 Using SCCM 2007
breadcrumb trail in a dropdown box
IIS 6.0 asp.net 2.0 cpu performance issue
LWAP are unable to join Cisco Wieeless Controller 4400
HTTP Error 500.19 - Internal Server Error
Reset display resolution windows 7
File permissions
Importing a Word document To Fox Pro Tables
Dynamics AX 2009 - AOS Performance