Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Which of these selects is faster?

Re: Which of these selects is faster?

From: John0725 <john0725_at_aol.com>
Date: 14 Apr 1999 04:26:03 GMT
Message-ID: <19990414002603.18901.00000321@ng134.aol.com>


If the where clause has ANDs then it is evaluated from the end of the query towards the beginning, but if it has ORs it is evaluated starting closest to the FROM clause and working its way downward.

I have read that you want to order your where clause so that the first thing it comes across will eliminate the most rows, but you also have to weigh in what fields will allow the use of indexes.

--John Received on Tue Apr 13 1999 - 23:26:03 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US