Return-Path: <root@fatcity.cts.com>
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by naude.co.za (8.11.2/8.11.2) with SMTP id g39CYkc27281
 for <oracle-l@naude.co.za>; Tue, 9 Apr 2002 08:34:46 -0400
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id FAA68003;
 Tue, 9 Apr 2002 05:35:01 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b71/bab) via UUCP id 0043F54E; Tue, 09 Apr 2002 04:58:25 -0800
Message-ID: <F001.0043F54E.20020409045825@fatcity.com>
Date: Tue, 09 Apr 2002 04:58:25 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Igor Neyman" <ineyman@perceptron.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Igor Neyman" <ineyman@perceptron.com>
Subject: Re: where clause to include data for the previous 24 hours
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 71; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain;	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

No conversions required:

where event_date > (sysdate - 1 + 6/24)

Igor Neyman, OCP DBA
ineyman@perceptron.com


----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <ORACLE-L@fatcity.com>
Sent: Tuesday, April 09, 2002 8:13 AM


> I need a where clause to ACCURATELY (down to the second) calculate the
> previous 24 hours when a query is run and bump the time by 6 hours
> (event_date is based on GMT). The default date format has been set to
> 'SYYYY-MM-DD HH24:MI:SS','NLS_CALENDAR=GREGORIAN'.
>
> I've tried the following:
>
> " where event_date > (to_date(substr(sysdate,0,22),'YYYY/MM/DD
HH24:MI:SS')
> + 6/24) - 1".
>
> Any ideas?
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Johan Muller
>   INET: c-johan.muller@wcom.com
>
> Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
> San Diego, California        -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Igor Neyman
  INET: ineyman@perceptron.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

