The dates values are all stored in the same table, same column. I am not sure how to use datediff to differentiate between - i.e. number of days between a kept Intake (0110) and a subsequent scheduled therapy appointment (0116).
Number of days between
activity_c = "0110" and recipient = "KEPT"
and
activity_c = "0116" and recipient is (any value)
So, if the intake was kept on 7/01/2012 and they had a therapy appointment scheduled on 8/12/2012 - how to calculate the number of days that have elapsed between.
I don't usually have a hard time figuring this stuff out, but for some reason this scenario is throwing me off and I can't seem to wrap my head around it :/
Thanks for the feedback :)