Vixremento
Well-Known Member
- Joined
- May 28, 2009
- Messages
- 378
Howdy!
Okay I have a bit of a problem - I can't use case statements because the statements that my app generates produces nested case statements (for each formula) that quickly exceed the maximum number allowed by SQL Server.
Now my question is this - is it possible to accomplish something like this without using case statements at all in SQL?
Okay I have a bit of a problem - I can't use case statements because the statements that my app generates produces nested case statements (for each formula) that quickly exceed the maximum number allowed by SQL Server.
Now my question is this - is it possible to accomplish something like this without using case statements at all in SQL?
Code:
select case when (case when 1 = 1 then 1 else 0 end) + (case when 2 = 2 then 2 else 0 end) = 3 then 5 else 0 end