Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Re: Problem selecting where between 1999 and 2000
Why are you TO_CHAR'ing the date if it's a native oracle date field?
You should just try
where start_ts between '19-DEC-1999' and '15-AUG-2000'
"Maverick" <topgun7443_at_my-deja.com> wrote in message
news:8ned94$mf$1_at_nnrp1.deja.com...
> I am trying to select data using the following where clause:
>
> where to_char(start_ts,'MM/DD/YYYY') between '12/19/1999' and
> '08/15/2000'
>
> start_ts is defined as DATE.
>
> There is data that should be selected. The where clause works when
> using between '01/01/2000/ and '08/15/2000', but also fails when using
> between '12/31/1999' and '08/15/2000'.
>
> Is this a known bug? This is Oracle version 8.0.5 running on AIX 4.2.1.
>
> Your help is appreciated.
> - Tom
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Wed Aug 16 2000 - 11:34:10 CDT