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

Home -> Community -> Usenet -> c.d.o.server -> Re: date problem

Re: date problem

From: Eric Parker <eric.parkerthedross_at_virgin.net>
Date: Tue, 26 Aug 2003 17:19:06 +0100
Message-ID: <4ML2b.3970$MS5.69138@newsfep4-glfd.server.ntli.net>

"charlie" <chartek_1_at_hotmail.com> wrote in message news:85866a8d.0308260808.7411b4ee_at_posting.google.com...
> Hi,
>
> Oracle 8.1.7
> Windows 2000 Server
> Using Sql Plus.
> nls_date_format = DD-MON-YYYY - I have tried using RRRR (below), YYYY,
> to_date and a number of different combinations, but always get the
> same results.
>
> First the query;
> select date_to from AGRPROD_CWaemserviceoff
> where to_char(date_to, 'DD-MON-RRRR') >= '24-AUG-2003'
> /
>
>
> Any ideas on why certain records aren't getting filtered?

Charlie

Your where clause comparison ">=" is being used to compare 2 strings. You should compare your stored date with a string converted to a date.

HTH eric

--
Remove the dross to contact me directly
Received on Tue Aug 26 2003 - 11:19:06 CDT

Original text of this message

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