G
Guest
I have to search a vary large table for records that satisfy date criteria.
The date columns are not indexed.
I need to do the following
SELECT ...
FROM ...
WHERE (Date1 >= ParmDate1 AND Date1 <= ParmDate2) OR
(Date2 >= ParmDate1 AND Date2 <= ParmDate2)
I guess my questions are is it any more efficient to use BETWEEN syntax and
would it make a vast difference to have the data columns indexed?
The date columns are not indexed.
I need to do the following
SELECT ...
FROM ...
WHERE (Date1 >= ParmDate1 AND Date1 <= ParmDate2) OR
(Date2 >= ParmDate1 AND Date2 <= ParmDate2)
I guess my questions are is it any more efficient to use BETWEEN syntax and
would it make a vast difference to have the data columns indexed?