i am having comm in emp table and i want to display 0 when
comm =null and -10 if comm= value
Answers were Sorted based on User's Feedback
Answer / shaik
select e.*,decode(comm,null,0,-10) new_comm
from emp e
Is This Answer Correct ? | 11 Yes | 1 No |
Answer / siva
select nvl2(comm,-10,0) "New Comm" from employees;
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / prajakta
select case when comm is null then 0 else -10 end from emp
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / s.rajeshkumar
select nvl2(comm,0,-10) "New Comm" from employees;
Is This Answer Correct ? | 7 Yes | 6 No |
Answer / swati
update emp set comm =
case
when comm is null then 0
else
10
end
Is This Answer Correct ? | 1 Yes | 4 No |
what is domain in database and its benefits?
TILL WHAT LEVEL OF SECURITY BO SUPPORTS?
What is store procedure?and how do u take the values from database and run in scripts?
Difference between negative and positive adjustments : oracle accounts receivable
Difference between transaction type and transaction sources. : oracle accounts receivable
For web applications from which version of Oracle is suitable?
What is db_recovery_file_dest in oracle? When do you need to set this value?
What command would you use to create a backup control file?
HOW TO GET THE ORGANIZATION TO ORGANIZATION DETAILS INFORMATION IN THE INVENTORY MODULE.THE REQUIREMENT IS FROMORG TOORG FROMINV TOINV ..
How many segment are present in Oracle Manufacturing
Can anybody tell which is the best training institute for learning Oracle in chennai...? And i also i want placement assurance
You have just compiled a PL/SQL package but got errors, how would you view the errors?