Where do you use decode and case statements?



Where do you use decode and case statements?..

Answer / Pankaj Kumar Tripathi

Decode and Case statements are used in Oracle for conditional logic within SQL queries. DECODE is a function that provides an alternative to IF-THEN-ELSE logic, while CASE enables more complex conditions using the WHEN-THEN syntax.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

What is ASM (Automatic Storage Management) in Oracle?

1 Answers   MCN Solutions,


what is Table ?

2 Answers  


What is null value in oracle?

1 Answers  


if you update view? where we store the data?

5 Answers   Cap Gemini,


What a SELECT FOR UPDATE cursor represent.?

1 Answers  


What is the sid in oracle?

1 Answers  


Display Odd/ Even number of records?

3 Answers  


what is mean by prmary key and foreign key and how can we diffrentiate that? Please answer me. Advance thanks.

9 Answers   BPO, Excel, Wipro,


What is oracle in java?

1 Answers  


How to create id with auto_increment on oracle?

1 Answers  


What is a Data Segment ?

3 Answers  


What are the attributes that are found in a cursor?

1 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1803)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)