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
how many reports have u created ? explain a few.
What if a cartesian product pop up block appears when running a report. Does it give wrong values? How to solve this issue?
how to create reports on screech?
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)?
What is top business?
What is package in BO
How many universes can be created in a project?
Please send me BO certification details and question papers? this is my mail id: valsreenivas@gmail.com
Hi, I would like to know how is the integration if we want to use Oracle Essbase as the Cube Engine, and present the Cube by Business Objects Presentation Layer? Can Oracle Essbase be integrated with Business Objects? Thanks,
what is universe null
What is the difference between business requirement document and use case document.
What we need to discuss with designer before starting the universe designing.
Can we configure two instances of CMS pointing to two different CMS system databases?
how to create metric universe ?
Explain what sort of existing documents should business analysts refer to when starting on a new project?