| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Efficient date range search?
Dieter Nöth wrote:
> Jonathan Leffler wrote:
>
>>Then the criterion for 'alive at time 2001-07-04 19:30:00' is: >> >>WHERE born <= TIMESTAMP '2001-07-04 19:30:00' >> AND died >= TIMESTAMP '2001-07-04 19:30:00'
No reason except I've never looked at it that way round; I'm used to thinking of "variable BETWEEN constant1 AND constant2" - inertia, in other words. I doubt if it makes any difference whatsoever to the execution plan which of the two is written.
-- Jonathan Leffler #include <disclaimer.h> Email: jleffler_at_earthlink.net, jleffler_at_us.ibm.com Guardian of DBD::Informix 1.00.PC2 -- http://dbi.perl.org/Received on Wed Oct 09 2002 - 00:00:52 CDT
![]() |
![]() |