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
IE8 Submit Form with [Enter] Key, not functioning properly
Virtualizing SQL
Dns issue logging onto domain
instantiating an object in php
MSiSCSI Timeout - Event ID 103 - 2003 server hanging connected to CX4-120
Disable IPv6 on windows 2008
Exchange database backup failing with Arcserve v15
What is S=Strict, T=Transitional, and F=Frameset
cannot find webica.ini in Windows 7
How do i factory reset netvanta 1524st switch from the cli command line?