Subject Re: [firebird-support] using ALL or ANY
Author Ann W. Harrison
Rick Roen wrote:
>
> Select C.*
> from CUSTOMERS C
> where 1000 > ALL(Select Sum(O.TOTAL) from ORDERS O where O.CUSTNUM =
> C.IDNUM Group by O.SEASON)
>
> but this is returning Customers that do not even have one sales, much
> less all SEASON's sales over 1000.

Why are you asking for all the sums to be less than 1000?

Regards,


Ann