Hi,
I'm not sure if I am over complicating this in my own mind, or if what I want to do is even possible, but here we go!
I am attempting to build a report that will tell us when certain steps in a process have been completed, compared to our company mandated deadline dates.
So in Table 1, I have something that will look something like this: -
Table 1's 'due dates' are all calculated based on the primary date, which are easy to calculate based on GETDATE.
My next step is to pull dates into the above table, based on the ACTUAL dates that each step was completed, based on shown in a second table: -
There will be a unique 'Activity Type' for each stage, so I need to pull in the actual date added in table 2 into the appropriate field in Table 1. (so first stage actual date will be the date that corresponds to Code 1 in table 2).
The tables can be...