New to perdicate expressions

Posts   
 
    
jstarke
User
Posts: 1
Joined: 13-Apr-2009
# Posted on: 27-Apr-2009 22:58:38   

I am new to using the perdicate expressions, can someone help me to write this?

Can this even be done with LLBL?


SELECT * FROM ProductDiscount WHERE 
Product_ID IN (
SELECT Product_ID
FROM ProductDiscount
GROUP BY Product_ID
HAVING SUM(IsPercentage) = 0 AND SUM(PerItem) = COUNT(*)
)

Thanks in advance JS

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 28-Apr-2009 06:12:05   

It's possible. Please read the FieldCompareSetPredicate and let us know if you need further help.

David Elizondo | LLBLGen Support Team