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: SQL SELECT with date restriction, please help !

Re: SQL SELECT with date restriction, please help !

From: Matteo Vitturi <mvitturi_at_libero.it>
Date: Fri, 31 Aug 2001 14:26:21 +0000 (UTC)
Message-ID: <2e3ee2a9f4ba8a1bdf7dd1c4d0a2a7d2.16982@mygate.mailgate.org>


>
> date_ent between to_date('30/08/2001')
> and to_date('30/08/2001')+ 1 /*day*/ - (1/24*60*60)
> /*one second */
>
> Hth,
>
> Sybrand Bakker, Senior Oracle DBA

Yes, but that could miss date half-a-second before midnight! (Rare but real). Try this instead:   

        date_ent >= to_date('30/08/2001')     and date_ent < to_date('30/08/2001')+ 1

Regards.
  Matteo Vitturi

-- 
Posted from  [213.82.64.18] 
via Mailgate.ORG Server - http://www.Mailgate.ORG
Received on Fri Aug 31 2001 - 09:26:21 CDT

Original text of this message

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