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: Jim Kennedy <kennedy-down_with_spammers_at_attbi.com>
Date: Thu, 26 Jun 2003 02:51:00 GMT
Message-ID: <octKa.21742$nG.23649@rwcrnsc51.ops.asp.att.net>


try it. One word of advice don't do it that way. You are counting on a particular nls date format. Instead wrap the strings in to_date eg to_date('01-JAN-2003','dd-mmm-yyyy')
Jim

-- 
Replace part of the email address: kennedy-down_with_spammers_at_attbi.com
with family.  Remove the negative part, keep the minus sign.  You can figure
it out.
"Just_Buy" <ohbej_at_hotmail.com> wrote in message
news:65275ae5.0306250757.b859f09_at_posting.google.com...

> 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!
Received on Wed Jun 25 2003 - 21:51:00 CDT

Original text of this message

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