SELECT PARENTACCOUNT,
PREVAVAILBALANCE,
BALANCECHANGE,
NEWBALANCE,
ACTIVITYDATE
FROM SAVINGSTRANSACTION
WHERE PARENTACCOUNT='0000099980' AND
PARENTID='0010' OR
PARENTACCOUNT='0000099979'AND
PARENTACCOUNT = '0010'
I need this to pull value for the last month without using an actual date because I will be using it again next month