Select Case When

Posts   
 
    
Posts: 1
Joined: 05-Mar-2009
# Posted on: 05-Mar-2009 23:47:43   

I've searched the forum, sorry If it's answered before

Here's what I'm trying to do:


SELECT  
[LPA_e2].Quantity
sum(Case When u.System = 'Metric' then [LPA_e2].Quantity else [LPA_e2].Quantity * u.BaseMultiplier End) as [TotalQuantity]


FROM ....

llblgen 2.0, not possible in this version? Fine, how can I do this then:


SELECT  
[LPA_e2].Quantity
Case When u.System = 'Metric' then [LPA_e2].Quantity else [LPA_e2].Quantity * u.BaseMultiplier End as [Quantity]

FROM ....
daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 06-Mar-2009 04:33:44   

V2.0 suuports DBFunctionCall, but the CASE support on DBFunctionCalls was added since V2.5. Is there any chance you update to V2.5?

David Elizondo | LLBLGen Support Team