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 data of last 30 days on basis of sys date

user12957777Jul 28 2010 — edited Jul 28 2010
SELECT DT, ITEMCODE, ITEMNAME, QTY
FROM   TABLE1
In above given query, how i could calculate the QTY details of last 30 days, APR, MAY, and JUNE

As the current month is JULY, in AUG, the Qty details are required for last 30 days (from sysdate), MAY, JUNE, JUL

Please suggest.

Yogesh

Edited by: user12957777 on Jul 28, 2010 3:16 AM
This post has been answered by Frank Kulash 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
4,700 views