Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 is an Oracle database Full Backup?

1132


How do you create a credit note against an invoice? : oracle accounts receivable

1083


I need a Technical evaluation between Oracle and SAP ? please do a need ful.

1994


Explain the difference between $ORACLE_HOME and $ORACLE_BASE.

7674


Can you explain how to adjust the amount of advance already received against an invoice? : oracle accounts receivable

1276


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

2525


WHAT ARE TEMPLATES?EXPLAIN WHAT YOU HAVE CREATED?

2026


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

1805


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

2464


What is Restricted Mode of Instance Startup in Oracle?

1199


What is chargeback invoice? How do we create it? : oracle accounts receivable

1333


Differentiate between standard remittance and bills receivable remittance : oracle accounts receivable

1145


What is an Oracle database Partial Backup?

1160


How would you go about increasing the buffer cache hit ratio?

2601


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

5331