Difference between Decode and Case?
Answer Posted / judith
Decode
The default operator for comparison is '=',
for e.g select deptno,decode
(deptno,10,'dept10',20,dept20,default)
so if the deptno=10 then the value is replaced by dept10
and so on,
whereas in Case:
we can use any operator other than '=',
for e.g
select deptno,
case when deptno=10 and sal>1000 then 'dept10'
else
'dept20'
Hope the difference is made clear.
Regards,
Judith
| Is This Answer Correct ? | 33 Yes | 8 No |
Post New Answer View All Answers
Explain what is the difference between business requirement document and use case document.
How to schedule the report in b.o?
What is the difference between condition & filter?
Did you face any problems while creating reports? Name? Solutions?
Explain about alerts in bos, under what situation we need to use alerts?
what will be the contents for a functional requirements specifications
I have set of reports in BO4.0 and need to use "Hyperlink" functionality. I had to use native hyperlink functionality provided in BO4.0 but looks like it's available only in Rich Client.Currently,we have only Infoview B04.0 Launch Pad.Is OpenDoc the only hyperlink option on BO4.0 Launch Pad? Thank you.
Can we Save (save as) WEBI Doc as DESKI?
What is object stores?
What is thumbnail?
Explain how to execute the plsql procedure from the report by clicking with mouse?
If I have three predefined prompts. In a report it will come randomly. How they will come in a specified format?
Explain is data mart?
What is the difference between the public object&schema object?
Explain how can we do load testing for webi reports? (Example if I have have to test one webi report for concurrent users refreshing report at one time)?