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

What are synonyms in sql?

964


How many rows can sqlite handle?

1100


What is difference between nchar and nvarchar?

1019


Explain what is a view?

1054


what is the bond code in materialized view?

2995


What is coalesce sql?

986


What is the difference between having and a where in sql?

1092


Can we use ddl commands in pl sql?

1148


How much does a sql dba make? : SQL DBA

935


Is sql a programming?

968


what is top in tsql? : Transact sql

1109


what are the advantages and disadvantages of views in a database? : Sql dba

1035


what happens if you no create privilege in a database? : Sql dba

990


Why do we use sql constraints? Which constraints we can use while creating database in sql?

1031


Are pl sql variables case sensitive?

1039