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

What is trigger point?

531


How to return an array from java to pl/sql?

587


What are the different operators available in sql?

570


What is a clob in sql?

562


What is sql deadlock?

562






how to drop an existing view in mysql? : Sql dba

564


Is mariadb nosql?

581


what is bcp? When is it used?

577


What is embedded sql in db2?

503


What are %type and %rowtype for?

611


What is sorting in sql?

501


Explain the difference in execution of triggers and stored procedures?

563


What does data normalization mean?

525


what is the use of double ampersand (&&) in sql queries?

623


How to fetch alternate records from a table?

675