Re: problem in to_date function

From: Tim Cuthbertson <timNOcuthSPAM_at_bellsouth.net>
Date: Sat, 23 Aug 2003 09:40:51 -0500
Message-ID: <0RK1b.4496$jd.1665_at_fe02.atl2.webusenet.com>


The "problem" is that your dates are stored with the time. So, a store date of Aug 21 at 10 AM does not match your where condition, which is searching for Aug 21 at midnight.

There are two solutions: 1) Use a function in the where clause of your query or, 2) originally store the dates using a TRUNC function, so that the time is always 00:00:00.0.

Tim Received on Sat Aug 23 2003 - 16:40:51 CEST

Original text of this message