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

Write a unique difference between a function and a stored procedure.

998


What is #table in sql?

1101


How do you add a column to a table?

1055


What does trigger mean in psychology?

962


How can you select unique records from a table?

1079


What is a pl/sql block?

1230


How do I run a sql script?

1149


How do I access sql anywhere database?

970


how to create a new view in mysql? : Sql dba

938


Describe different types of general function used in sql?

1038


What is pessimistic concurrency control? : Transact sql

1089


what are the authentication modes in sql server? : Sql dba

1065


What are conditional predicates?

1062


Is a secondary key the same as a foreign key?

1038


how do you know the version of your mysql server? : Sql dba

1004