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!

Calculate the previous 3 months

user12957777Jul 28 2010 — edited Jul 28 2010
I want to calculate the last 3 months on basis of sysdate in 3 separate columns. I get the previous month by executing the following SQL statement:
select EXTRACT(MONTH FROM TRUNC(SYSDATE,'MONTH')-1)mn1 from dual
The current month is JULY, so how i could get 05, 04 as output .

Yogesh
This post has been answered by ORA_AJ on Jul 28 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 25 2010
Added on Jul 28 2010
6 comments
5,038 views