I am trying to see Aging Distribution Orders, currently what i have shows me the object version of the report which if anything changes then it drops off my category, i want to see only the status history change that is over a certin amount of days. any help would be greatly appreciated. Thank you in advance below is how my current SQL is written
objstate NOT IN (
'Closed',
'Cancelled'
)
AND (
trunc(TO_DATE(objversion,'yyyymmddhh24miss') ) <= (
SELECT
trunc(SYSDATE) - 61
FROM
dual
)
AND trunc(TO_DATE(objversion,'yyyymmddhh24miss') ) >= (
SELECT
trunc(SYSDATE) - 120
FROM
dual
)
)
Best answer by paul harland
View original