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 |
why r u using etl tool.
how to write customizations in po
what is the difference between TRUNCATE and DELETE command in SQL
23 Answers ICICI, Saama Tech, SkyTech, TCS,
What is auto invoicing? : oracle accounts receivable
I need a Technical evaluation between Oracle and SAP ? please do a need ful.
Are These Dff's Flexible?
what is diff between pre insert,on insert,post insert triggers?
Can anybody tell which is the best training institute for learning Oracle in chennai...? And i also i want placement assurance
Name two files used for network connection to a database.
A table is classified as a parent table and you want to drop and re-create it. How would you do this without affecting the children tables?
What is $FLEX$ and $PROFILES$?
can u pls share responsibilities for production how to environment in odi?and how to generate report ?