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
After Excel export and format can I auto email?
WHat is the recommended size for the swapfile for my SQL Server ?
Computer won't recognize Seagate Freeagent Go 320gb
Multiple Children Relationships to One Parent Table
prstat vs top command
VBA macro script populating cells from data source
mouse click on image of TcxPageControl (Tab image)
Syntax error (missing operator) in query expression
Replacing Keyboard on Toshiba Portege A600
Looking for Excel User Function not Text to Columns to Convert text values to date values.