Subject | Re: [IBO] Re: Fastest way to check for record |
---|---|
Author | Helen Borrie |
Post date | 2004-03-17T09:56:24Z |
At 09:20 AM 17/03/2004 +0000, you wrote:
whole set is obtained (like DISTINCT). EXISTS() exits as soon as the first
matching row is established.
Helen
>TryNo, it isn't. FIRST is a set quantifier and it is applied *after* the
>SELECT FIRST 1 KEYFIELD
>FROM SALESDATA
>WHERE (PRODUCT = :someproduct) AND
> (TRANSACTION_DATE >= :somedate)
>
>It's better way IMHO.
whole set is obtained (like DISTINCT). EXISTS() exits as soon as the first
matching row is established.
Helen