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...

what is difference between decode and case function?

Answer Posted / neha sinha

1)Performance wise Case is good.

2)Case is easy to understand and debug.

3)Case is ANSI stranded and Decode is property of oracle.

4) We can use Decode only in SQL but we can use Case any
where like Function/procedure.

5)Decode can be use only for continuous data not for range
value. but case can be use for range value and it allowed
operator like ">" "between" also.

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I start sql profiler?

1045


What mean sql?

1050


What is trigger in sql? Explain

1037


What is the primary key?

997


List the different type of joins?

1112


Explain the difference between cursor declared in procedures and cursors declared in the package specification?

1217


How can we store rows in PL/SQL using array?

1264


What are reports usually used for?

1078


what is a trigger in mysql? : Sql dba

1207


what is the difference between char and varchar data types? : Sql dba

1166


What is dml statement?

996


What is the purpose of the primary key?

1117


what are local and global variables and their differences? : Sql dba

1130


How long will it take to learn pl sql?

976


What is meant by truncate in sql?

1107