I am currently using this in my WHERE Clause to pull records for the previous month.
where extract(year from GFTBPM_70872_APP.CRV_INV_HEADER.CREATED_ON) = extract(year from sysdate) And extract(month from GFTBPM_70872_APP.CRV_INV_HEADER.CREATED_ON) = extract(month from sysdate) - 1
It was successfully changed to previous week.
where extract(year from GFTBPM_70872_APP.CRV_INV_HEADER.LAST_UPDATED_ON) = extract(year from sysdate) And extract(day from GFTBPM_70872_APP.CRV_INV_HEADER.LAST_UPDATED_ON) = extract(day from sysdate) – 7
How would this be updated to look for the previous quarter? I keep getting errors.