what is difference between decode and case function?

Answer Posted / shiva kumar

Case functions are of two types
1. SIMPLE CASE(Equivalent to DECODE)
2. SEARCHED CASE

1.SIMPLE CASE is equivalent to DECODE in performance.The
only difference is it is ANSI Standard where as DECODE
function is designed by oracle.

2.SEARCHED CASE is more powerful then DECODE.Using SEARCHED
CASE we can evaluate multiple conditions,range evaluation.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to install mysql? : Sql dba

792


How do you get column names only for a table (sql server)?

859


What is sql and how does it work?

735


Does view store data in sql?

700


Is ms sql is free?

712






What is the use of index in sql?

761


How can I see all tables in sql?

727


Define select, insert, create, delete, update, drop keywords

776


What is a dynamic query?

762


What are the possible values for the boolean data field?

690


How many sql statements are used?

743


Why is the cursor important?

729


What can I use instead of union in sql?

708


What are keys in sql?

725


What are analytic functions in sql?

743