All - below is part of a construct I am using. I have some very complex data and processing to perfrom and I need a way to get beyond case limitations.
Anyone know of other more robust constructs available in SQL - DB2.
The book says only 3 levels of nested case statements are allowed - that is true.
Any assistance would be appreciated.
select
field1
, field2
,case
when < condition >
then statement
else
case
when
then
when
then
when
then
( up to 12 times
end
I do this 9 times, it will work.
When I add a tenth structured statement, it fails
end as "Field Name"
from
mulitple tables / joins, etc.