How can I get a select of 12 month starting with current month down. Example 06/2002, 05/2002,..........08/2001,07/2001
Please help
Thanks for your help
Not exactly your answer...but seems to be similar...
We run a canned report for a "rolling" last 7 days using trunc(sysdate)-7 as the earliest date and trunc(sysdate) as the latest date.
Sysdate is the system date selected from the "default" dual table that comes with Oracle.
Trunc() gives us a flat date so the date is inclusive of all hours/minutes within that day.
-7 goes 7 days back from the sysdate.
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.