Subject | Re: [firebird-support] using ALL or ANY |
---|---|
Author | Ann W. Harrison |
Post date | 2007-01-24T22:02:35Z |
Rick Roen wrote:
Regards,
Ann
>Why are you asking for all the sums to be less than 1000?
> 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.
Regards,
Ann