G
Guest
I have a table that holds a customer's history, Example:
Customer Account Job_Type Completed_Job
7801-123456-01 8 6/1/06
7801-123456-01 7 5/15/06
7801-123456-01 3 4/1/06
7801-123456-01 7 3/29/06
7801-123456-01 7 3/25/06
What I need to find is that If the Job Type = 7 then Subract this Job's
Completed Date minus the previous Job Completed Date. For example, on line 2
I have a Job type 7 completed on 5/15/06 minus the previous job on 4/1/06
equals 44 days since the last visit.
Thanks in advanced!
Customer Account Job_Type Completed_Job
7801-123456-01 8 6/1/06
7801-123456-01 7 5/15/06
7801-123456-01 3 4/1/06
7801-123456-01 7 3/29/06
7801-123456-01 7 3/25/06
What I need to find is that If the Job Type = 7 then Subract this Job's
Completed Date minus the previous Job Completed Date. For example, on line 2
I have a Job type 7 completed on 5/15/06 minus the previous job on 4/1/06
equals 44 days since the last visit.
Thanks in advanced!