Re: Indexing for <= or >=
Posted by: Peter Brawley
Date: February 23, 2012 05:25PM

Prob'ly needs a covering index. Let's see the results of ...

SHOW CREATE TABLE table;

EXPLAIN EXTENDED
SELECT *
FROM table
WHERE low_zip <= '46526' AND high_zip >= '46526' AND scac = 'EXLA' ORDER BY low_zip DESC, high_zip DESC LIMIT 1;

PB

Options: ReplyQuote


Subject
Written By
Posted
February 21, 2012 03:24PM
Re: Indexing for <= or >=
February 23, 2012 05:25PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.