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