Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: what is wrong with this timestamp??
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.
--
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).
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