Hi guys,
I have the following SQL that returns time transactions - including fields for Entry Date Transaction Date and Quantity of time booked:
I need to display another column showing the number of days between the ENTRYDATE and TRANSDATE.
I also need a criteria that will only display the results where the TRANSDATE is a week or more BEFORE the ENTRYDATE.
(7 days +)
can anyone help?
I have the following SQL that returns time transactions - including fields for Entry Date Transaction Date and Quantity of time booked:
Code:
SELECT * FROM (SELECT ENTRYDATE, TRANSDATE, QUANTITY, COMPANY_CODE, PROJECT_CODE, RESOURCE_CODE, TASK_ID, CHARGE_CODE FROM
niku.PPA_WIP
UNION ALL
SELECT ENTRYDATE, TRANSDATE, QUANTITY, COMPANY_CODE, PROJECT_CODE, RESOURCE_CODE, TASK_ID, CHARGE_CODE FROM
niku.PPA_TRANSCONTROL) a
WHERE COMPANY_CODE = 'DST01UKT'
I need to display another column showing the number of days between the ENTRYDATE and TRANSDATE.
I also need a criteria that will only display the results where the TRANSDATE is a week or more BEFORE the ENTRYDATE.
(7 days +)
can anyone help?