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
Custom Shortcut Menus in MS Access 2007
Hi - cisco 1840 - what is the default password please - http or via console
Active Sync won't work over 3G
Symantec Endpoint Network Problems
how do i stop a java code?
Error "Cannot Quit Visual FoxPro" when closing form with embedded OLE MapPoint control
How can I "cad-cam" an entire car body into fiberglass ?
Changing Allow/Block settings on Autodiscover prompt in Outlook
Session Timeout during Session
WMIC Get Make, Model and Serial Number