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
What is the difference in creating filters in designer and business objects?
How to schedule the report in b.o?
how many reports have u created ? explain a few.
IN THE REPORT I WANNA APPLY HYPERLINK FOR A CELL IN THE COLUMN/ROW HOW TO ACHIEVE THIS? EG: YEAR COLUMN : 2001,2002,2003,2004 I WANNA APPLY FOR 2001 ONLY
what is document design in boxi,have u participate in that
Migration of Reports from business objects 5.1.5 to samee version in different hardware?
How to sort the dynamic objects alphabetically on the Universe based on and SQL Server
I have 2 doubts regarding the "Input Control" functionality in BI4: 1) Can the Input Controls in BI4 be manipulated? I mean, can we change the IC display as BOLD or change the values from Italics to regular? Or change the colors? 2) How to get hierarchy type control in IC? Let's say my first IC is for Country and second is for State. If I select a particulat country from Ist IC,second one should show me states belonging to selected country. Is that possible? Thanks in advance!!!
How can you first report in Business Objects by using broadcast agent?
What is the functional & architectural differences between business objects and web intelligence reports?
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)?
Explain the difference between union and group?
in sap bi we have wad, then why we go for sap bo
Explain is there any tool that can compare two unvs / two rpts , built using bo 5.1 / bo 6.5?
Explain how to execute the plsql procedure from the report by clicking with mouse?