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

Home -> Community -> Usenet -> c.d.o.misc -> Re: sysdate

Re: sysdate

From: Arjan van Bentem <avbentem_at_DONT-YOU-DAREdds.nl>
Date: 1999/03/31
Message-ID: <7dtsac$pr7$1@weber.a2000.nl>#1/1

Marc Mazerolle wrote
> Why trunc sysdate at all in a between or in a <= condition ?

If you don't use trunc(..), like

    select abc
    from xyz
    where activitydate>=sysdate
    and activitydate < (sysdate+1)

then at 21:12 you'd only select activity dates between today, 9:12 p.m. and tomorrow, 9:12 p.m. I doubt that is what anyone would ever need....

Arjan. Received on Wed Mar 31 1999 - 00:00:00 CST

Original text of this message

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