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 |
How do you resize a data file?
I would like to study certification course in Data base adminidtrator then where would i go to study this course?
How I can load an image into image item on Forms. I want to know about built-ins and procedure. and also code for it.
i am working with OC 4.5 i have numbers in table in 10 row with some null values please tell me how to find total? Thanks
What does coalescing a tablespace do?
can u tell me how many types of oracle and which type all detail in oracle (suppose all history of oracle )
Explain about party and customer in ar : oracle accounts receivable
What are the mandatory setups in setting up a PO in oracle
I have 3+ Years experience HR with Technical Recruitment Industry. Now i would like to learn oracle HRMS Models of all aspect. please suggest any one, which institution is best for oracle HRMS practical with real time teaching in Chennai, Tamilnadu. What are the basic stat up to learn Oracle HRMS with Core strongly?
i want to know about the javaBean.what is its purpose and how it can use in Forms.
how can we send a concurrent program output to the clients through mail or fax give me example.
How to move the data from one flatfile to multiple staging tables?give me some examples? for example in po interface one flat file is there and multiple staging tables are there how can move it?please give me answer for this question?