i am having comm in emp table and i want to display 0 when
comm =null and -10 if comm= value

Answer Posted / s.rajeshkumar

select nvl2(comm,0,-10) "New Comm" from employees;

Is This Answer Correct ?    7 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which one is currently in used software cmpanies.

1663


Differentiate between unidentified receipt, unapplied receipts and on account receipts? : oracle accounts receivable

1245


What is the difference between oracle media recovery and crash recovery?

680


What is the mandatory setup in cyclecount ?

2192


now iam working as an hr executive in hyderabad i would like to learn oracle hrms kindly suggest me some good institutes in hyderabd

1799






Why more redos are generated when the oracle database is in begin backup mode?

668


1. What is PO rate variance gain and loss?

2316


where the dff data will be stored

1806


What is the sql query to find the employee who has Nth maximum salary?

4293


What are the different tools available for hot backups in Oracle? Is it preferable to take it manually all the time or it depends on the size of the database?

706


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

1769


How to clone the database using RMAN back

1618


what are the API of GL,PO,AP

1779


Hi, I want to know basic information about Oracle HRMS and the institutes in hyderabad or the best faculty as i want to make my career in it.And also want to know may a person from non technical background be able to do this course. Regards, Swetha

1962


What is autocashrule set? : oracle accounts receivable

745