Oracle SQL Comparison
From: Graeme St. Clair (Graeme.St.Clair_at_hds.com)
Date: 01/19/05
- Next message: Andy Hassall: "RE: Oracle SQL Comparison"
- Previous message: JupiterHost.Net: "Re: Double quotes in select statement throw an error"
- Next in thread: Andy Hassall: "RE: Oracle SQL Comparison"
- Reply: Andy Hassall: "RE: Oracle SQL Comparison"
- Reply: Ronald J Kimball: "RE: Oracle SQL Comparison"
- Maybe reply: Graeme St. Clair: "RE: Oracle SQL Comparison"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: dbi-users@perl.org Date: Tue, 18 Jan 2005 15:55:58 -0800
Oracle 8.1.
I'm finding that for a REQUEST_DATE value of 25-May-01:-
WHERE BLAH.REQUEST_DATE <= TO_DATE('25-MAY-01', 'DD-MON-YY')
yields nothing, while
WHERE BLAH.REQUEST_DATE >= TO_DATE('25-MAY-01', 'DD-MON-YY')
spits out the rows I want.
WHERE BLAH.REQUEST_DATE BETWEEN TO_DATE('25-MAY-01', 'DD-MON-YY')
AND TO_DATE('26-MAY-01', 'DD-MON-YY')
also works, but BETWEEN 24 and 25 does not. At least it's consistent! Is
this normal, or am I experiencing some kind of rounding condition?
Rgds, GStC.
- Next message: Andy Hassall: "RE: Oracle SQL Comparison"
- Previous message: JupiterHost.Net: "Re: Double quotes in select statement throw an error"
- Next in thread: Andy Hassall: "RE: Oracle SQL Comparison"
- Reply: Andy Hassall: "RE: Oracle SQL Comparison"
- Reply: Ronald J Kimball: "RE: Oracle SQL Comparison"
- Maybe reply: Graeme St. Clair: "RE: Oracle SQL Comparison"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]