Attached is a very simplified version of what I'm working with - privacy rules and all that!
I have no control over the way the data dumps into tblEMRDataDump (unfortunately).
What I'm trying to do is figure out a way to show how long has lapsed between the last contact with one customer and the first contact with the next customer.
This needs to be done for each employee each day. There are 300 employees, with up to 10 customers each a day, and I need to track the data back 2 years - that's a lot of records!
I thought about maybe using a query to create a new table that has one record for each employee, each day, with Cust1Contact1, Cust1Contact2, Cust2Contact1, Cust2Contact2 etc etc...
However, I got myself really confused when trying to do this with queries so scratched what I had and went back to the drawing board.
Am I approaching this the right way? If so, any suggestions on where to start. Or any of you guys have a suggestion for a better approach?