I need help calculating the time difference between two records based on a 3rd field value. For instance, I need to calculate the time difference in the below table when the status equals WAPPR and COMP. Please note these are different rows within a table. I will also need calculate the time difference between other Status changes.
Table:
WONUM STATUS CHANGEDATE
TKT9904 COMP 10/16/2014 7:59
TKT9904 REVIEW 10/16/2014 7:59
TKT9904 APPR 10/14/2014 9:31
TKT9904 WAPPR 10/13/2014 11:19
TKT9904 INPRG 10/15/2014 8:01
TKT9904 AUTH 10/13/2014 12:16
TKT9904 SCHED 10/13/2014 12:16
TKT9904 AUTH 10/13/2014 12:17
TKT9904 ASSESS 10/13/2014 11:39
Any Assistance would be greatly appreciated!!
Table:
WONUM STATUS CHANGEDATE
TKT9904 COMP 10/16/2014 7:59
TKT9904 REVIEW 10/16/2014 7:59
TKT9904 APPR 10/14/2014 9:31
TKT9904 WAPPR 10/13/2014 11:19
TKT9904 INPRG 10/15/2014 8:01
TKT9904 AUTH 10/13/2014 12:16
TKT9904 SCHED 10/13/2014 12:16
TKT9904 AUTH 10/13/2014 12:17
TKT9904 ASSESS 10/13/2014 11:39
Any Assistance would be greatly appreciated!!