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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: what is wrong with this timestamp??

RE: what is wrong with this timestamp??

From: Kevin Lange <kgel_at_ppoone.com>
Date: Wed, 12 Sep 2001 14:25:50 -0700
Message-ID: <F001.0038C56B.20010912135022@fatcity.com>

First guess ........ you need to use the to_date conversion on your string (assuming your field timestamp_date is defined as a date.

set timing on;
SELECT SUM(orig_transac_amt), COUNT(1)
FROM dsg.ar_open_items
WHERE timestamp_date between to_date('06-sep-01 21:22:34','dd-mon-yy hh24:hi:ss') and to_date('06-sep-01 22:01:57','dd-mon-yy hh24:mi:ss')

   AND user_id_no = 0;

-----Original Message-----
Sent: Wednesday, September 12, 2001 4:25 PM To: Multiple recipients of list ORACLE-L

set timing on;
SELECT SUM(orig_transac_amt),

       COUNT(1)
  FROM dsg.ar_open_items
WHERE timestamp_date between '06-sep-01 21:22:34' and '06-sep-01 22:01:57'

   AND user_id_no = 0;
Ora-1830??

Thanks
Raghu.



Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Raghu Kota
  INET: raghukota_at_hotmail.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_at_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: Kevin Lange
  INET: kgel_at_ppoone.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_at_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). Received on Wed Sep 12 2001 - 16:25:50 CDT

Original text of this message

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