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 to find 8th person record in a table? Plz mail ur answers to mak2786@gmail.com Regards Arun
WHAT IS CARTESIAN PRODUCT?
Name a tablespace automatically created when you create a database.
What is index? How many types of indexes?
how to write a query without using where? Example- select * from employee where empno=10 I need to write this query without where clause.
while creating requisitions i am unable to see the list of organisation can anyone help me out ?
Describe what redo logs are.
What is autocashrule set? : oracle accounts receivable
what are important reports in HRMS,GL,AP,AR in oracle apps?
3 Answers IBM, Pathway Technologies, Satyam, Techtimer, Wipro,
what is the link between suppliers and banks in ap module in oracle apps? And also query?
key flexfield structure
what is sql*loader parameters and where we will use it.