Subject | Re: Is "EXISTS()" cheap? |
---|---|
Author | Ali Gökçen |
Post date | 2005-09-16T12:03:41Z |
Hi,
it is not free but cheapest, if there is an index on ADate field.
... where ADate between DSTART and DEND ..
isn't more clear?
Regards,
-Ali
--- In firebird-support@yahoogroups.com, Bambang P <bpranoto@g...>
wrote:
it is not free but cheapest, if there is an index on ADate field.
... where ADate between DSTART and DEND ..
isn't more clear?
Regards,
-Ali
--- In firebird-support@yahoogroups.com, Bambang P <bpranoto@g...>
wrote:
> In this stored procedure statement:AData<=DEND))
>
> if (exists(select 1 from HOLIDAYS where ADate>=DSTART and
> then begincondition
> .....
> end
>
> Question:
>
> Does the select statement step through all records which meet the
> or does it return immediately after the first occurance of thecondition?
>
> TIA,
> --
> Bambang P.