By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,667 Members | 2,261 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,667 IT Pros & Developers. It's quick & easy.

DB2 - Beyond case statements

P: 2
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.
Oct 11 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.