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!

extract previous month from sysdate

610101Jan 29 2010 — edited Jan 29 2010
The following SQL statement returns zero as output :
SELECT DISTINCT EXTRACT(MONTH FROM SYSDATE) - 1 PRVMNTH FROM DUAL
I want the query to return output as previous month on any given date (sysdate).

Please help.

Yogesh
This post has been answered by 21205 on Jan 29 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 26 2010
Added on Jan 29 2010
3 comments
14,992 views