I am trying to put together a query to calculate TAT (turn around time). This Department has multiple shifts, and operates multiple days (see below).
Day of Week/Shifts Working
Sunday / 2
Monday / 3,1,2
Tuesday / 3,1,2
Wednesday / 3,1,2
Thursday / 3,1,2
Friday / 3,1
Saturday / No Shifts working (currently)
TAT is calculated by counting the total number of days, beginning with Day 0, from when the work becomes available to the day that it is processed. Now come the exceptions…
1. Any work processed by Shift 2 gets an additional day added into its TAT.
2. Any work processed on Saturday and Sunday count would count as one day only.
I have one table that would hold the available date (adate) for work received, another table that would hold the process date (pdate) and the shift that the work was processed on.
Hoping that you can help me put together a query that will look at the day of the week, shift, etc. to calculate number of days to process.
Marie