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 |
Explain materialized views and how they are used.
what are the tools used for oracle 10g in real time.
What are the mandatory setups in setting up a PO in oracle
CAN AUNIVERSE BE LINKED TO MORE THAN ONE DATASOURCE?
please explain about oracle
What view would you use to determine free space in a tablespace?
Explain the difference between a hot backup and a cold backup and the benefits associated with each
how to display last 5 letters from a name (take emp table ename )
Hi, IN oracle apps HRMS, if the employee changes his department, and when a conconurrent program is run for calulating the pay, The latest Dept id is not diaplayed, howeber the previous deptid is considered. Please can someone tell me where is the program going wrong, which side?
What is the use of transaction flexfield in autoinvoice? : oracle accounts receivable
default triggers available for reports
What is the disk migration? what is the steps involved in oracle disk migration?