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 is faster? <> or Between

Re: Which is faster? <> or Between

From: Daniel Morgan <damorgan_at_exxesolutions.com>
Date: Wed, 25 Jun 2003 09:12:43 -0700
Message-ID: <3EF9C9FA.2621AE77@exxesolutions.com>


Just_Buy wrote:

> Which of the following methods is faster for retrieving records within a date range?
>
> Option A:
> Paid_Date >= '01-JAN-2003' AND Paid_Date <= '01-MAR-2003'
>
> Option B:
> Paid_Date BETWEEN '01-JAN-2003' AND '01-MAR-2003'
>
> Thanks!

Do your homework on your computer ... not in a usenet group.

It would take you less time, and be substantially less aggravating to run EXPLAIN PLAN on these two statements than it has been to read this answer and get upset at my response which doubtless you will choose to do.

--
Daniel Morgan
http://www.outreach.washington.edu/extinfo/certprog/oad/oad_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Wed Jun 25 2003 - 11:12:43 CDT

Original text of this message

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