|
SELECT * FROM TABLE1 WHERE COL>100 ORDER BY COL;
It all depends on what you want to optimize, response time or elapsed time. If you are talking about displaying first few hundreds of records on screen, you should try to enable the COL index for index scan for better response time, it make your SQL return records faster.
If you are printing them on a report or use it in a Cursor and retrieve all records for evaluation. Elapsed time will be important, other execution methods may better, index may not be the good way to do it. |
|