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
XP refuses to boot after OS boot order changes were made using EasyBCD
Allowing port 1935 streaming media traffic
How to find out what version of remote OpenSSL server is running?
Aside from Flowplayer, recommend a good video/audio player for the web?
how to change a textbox from a combobox
Download conexant fusion 878a drivers for Windows 7
Export Data to XML File from SQL Database
Javascript to Silverlight (VB)
PHP Sessions
New Build (ASUS P7H55D-M EVO) not booting properly, can't install OS