@ 10:05 (04Jan05) UTC (aka "GMT" and "Zulu"),
@ 03:05 (04Jan05) Mountain Time
Click here to Donate to Tsunami Relief. 100% of your contributions here go to the victims...0% to administration.
They were "The First-Responder" to the disaster, with relief deliveries arriving before Red Cross and U.S. aid.
As I usually say, "One test is worth 1000 expert opinions." If you ask me here in Tek-Tips, you'll still need to test it out with Oracle to prove that I'm right. So, my suggestion is to try this code and see if it works:
Code:
select to_char(trunc(sysdate,'mm')-1,'mm') from dual;
TO
--
12
1 row selected.
If you do not get the above results, then you are probably not using Oracle.
@ 15:35 (05Jan05) UTC (aka "GMT" and "Zulu"),
@ 08:35 (05Jan05) Mountain Time
Click here to Donate to Tsunami Relief. 100% of your contributions here go to the victims...0% to administration.
They were "The First-Responder" to the disaster, with relief deliveries arriving before Red Cross and U.S. aid.
WHERE data_month = to_char(add_months(sysdate,-1),'MM')...
----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.