I am supervising a team of Coders performing data validations. I have a productivity database which calculates quantitative prod data, now I am looking to get it to calculate the amount of time a user spends on a case. I am thinking the way to do this would be a difference calculation using the audit trail, - avg("n amount of time spent per record").
How do I structure this?? I am still learning and I do not know how to define, from a query based on the audit trail, the idea of this record / next record. From there I would need to apply the difference calculation.
As an illustration:
Edits made as per audit trail by user X:
10:00am RecordID abc123
10:02am RecordID abc123
10:05am RecordID abc123
10:10am RecordID xxx000
10:00am RecordID xxx000
So I need some way to calculate "if RecordID <> previous RecordID then calculate difference in date/time between First of [RecordID]-abc123 and last of [RecordID]-abc123."
Currently the database is calculating a number of other variables, as shown below. I want to get some insight into quality, along the lines of "case with more edits performed in less time than the average overall = possibly more skilled user." To do this I need that difference calculation but have no idea how to do this, the calculation I understand but how to reference RecordID<>Previous RecordID and then apply the calculation- that's where I am confused.
Thank you for your help, you guys are a great resource!