[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
date arithmetic
- Subject: date arithmetic
- From: "Turner, Ivan" <Ivan.Turner@QWEST.COM>
- Date: Thu, 10 Jan 2002 10:51:10 -0700
Any suggestions or better yet, any solutions.
select program_name_l, table_name_l,
to_char(date_time_stamp_l,'YYYYMMDDHHSS'),
to_char(run_date_l,'YYYYMMDDHHSS'),
to_date(run_date_l - date_time_stamp_l,'HHSS')
from PS_AR_INTR_EXC_L
where program_name_l in ('ARL9400','ARL9100', 'ARL9000', 'ARL9200',
'ARL9300','ARL0020','ARL9500')
and date_time_stamp_l > '30-NOV-01'
and run_date_l > '30-NOV-01'
and table_name_l in ('RESDB','LATIS')
and rownum < 20
order by program_name_l, run_Date_l;
ERROR at line 4:
ORA-01858: a non-numeric character was found where a numeric was expected
4 to_date(run_date_l - date_time_stamp_l,'HHSS')
*