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

Answer Posted / shaik

select e.*,decode(comm,null,0,-10) new_comm
from emp e

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different types of transactions in ar? : oracle accounts receivable

749


types of receipts and detail desription about recipts and tables effected by receipts?

1630


What is the technical flow associated with P2P or Procure to Pay cycle like the tables, APIs, concurrent programs involved in this cycle. Only technical please.

3345


while creating requisitions i am unable to see the list of organisation can anyone help me out ?

1711


PURCHASE ORDER TO PAYABLES WHAT ENTREIS WILL HAVE

1705






what is difference between inner join & nested query or subqueries

2488


which gives Oracle R12 Financial training in delhi please give me answer its urgent?

1920


What is the importance of batch source set up in ar? : oracle accounts receivable

718


How to clone the database using RMAN back

1618


i want to know about the javaBean.what is its purpose and how it can use in Forms.

1837


difference of using cursor for loop and open,fetch,close.which one is better

1256


What is supporting issues GL AP and AR?

1994


Explain accounting for invoice in advance and arrears. : oracle accounts receivable

627


What is the Difference between the Person_Type_id column in the per_all_people_f and per_person_type_usages_f

3994


I've got a database 10g and Form version 5.0 but unable to connect. Does Oracle 10g database supports form 4.5

2059