Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-01847 day of the month must be between 1 and last day

455790Aug 22 2006 — edited Aug 22 2006

All

I have the following code, and it was working perfectly, but now i get the following error

select DISTINCT(exchange) ,count(*) "Total Trades", MIN(totalroundtripsecs) as "Minimum RoundTrip Seconds", MAX(totalroundtripsecs) as "Maximum RoundTrip Seconds"
from fastfix_customer_perf where  clientname = 'TEST1' 
and ( exchangeaction != 'Cancel' or exchangeaction != 'Reject' )
and Action != 'Cancel' and Action != 'Reject'
and to_date(endate,'MM/DD/YYYY') between (select trunc(sysdate) -7 from dual) and (select to_date(trunc(sysdate)) from dual)
group by exchange

The error is

ORA-01847 day of the month must be between 1 and last day

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 19 2006
Added on Aug 22 2006
6 comments
606 views