Subject | Re: [firebird-support] Optimizing a subquery |
---|---|
Author | Ann W. Harrison |
Post date | 2006-07-13T16:09:47Z |
kokok_kokok wrote:
were good enough to remove loop invariants.
Regards,
Ann
>Are you sure? At one time, I'm quite sure that the compiler/optimizer
> I need to do:
>
> select CustomerId, Sales, (select sum(Sales) from Customers) as Total
> from Customers
>
> It works fine, but for each row, Firebird executes the subquery
> "select sum(Sales) from Customers".
>
were good enough to remove loop invariants.
Regards,
Ann