Using CR11 and SQL2000, I have a table of employee productivity, grouped by username:
claimID(number) Type(char) Completed(DateTime)
Now we have another table called "checkin-checkout" which is big table of every time a claimID was "checked out" to someone or "checked in" by someone.
So I've added this table, with a left outer join on the ClaimID, but when I add this field to my report, it adds multiple records for each claimID because it could have been checked in or out multiple times.
I'm trying to create a formula that can find the most recent record from this table based on the datetime from the productivity table. This would tell me the time it was last checked out to someone. And then the difference between these two datetimes would be the length of time the person was working on it.
So, for example, productivity table has a claimID:
ClaimID Completed
12345 6/30/08 11:30:00
And the Checkedin-Checkedout table has the following records:
ClaimID Date Activity
12345 6/28/08 13:00:00 Checked Out
12345 6/28/08 15:30:00 Checked In
12345 6/30/08 11:15:00 Checked Out
12345 6/28/08 11:30:00 Checked In
So I'm trying to create a formula that will find and show the datetime of 6/30/08 11:15:00 because it's one prior to the 6/30/08 11:30 one in the productivity table. Then I can create another formula to calculate the difference and show that the person worked on it for 15 minutes.
Any help on how to do this is greatly appreciated, thanks!
claimID(number) Type(char) Completed(DateTime)
Now we have another table called "checkin-checkout" which is big table of every time a claimID was "checked out" to someone or "checked in" by someone.
So I've added this table, with a left outer join on the ClaimID, but when I add this field to my report, it adds multiple records for each claimID because it could have been checked in or out multiple times.
I'm trying to create a formula that can find the most recent record from this table based on the datetime from the productivity table. This would tell me the time it was last checked out to someone. And then the difference between these two datetimes would be the length of time the person was working on it.
So, for example, productivity table has a claimID:
ClaimID Completed
12345 6/30/08 11:30:00
And the Checkedin-Checkedout table has the following records:
ClaimID Date Activity
12345 6/28/08 13:00:00 Checked Out
12345 6/28/08 15:30:00 Checked In
12345 6/30/08 11:15:00 Checked Out
12345 6/28/08 11:30:00 Checked In
So I'm trying to create a formula that will find and show the datetime of 6/30/08 11:15:00 because it's one prior to the 6/30/08 11:30 one in the productivity table. Then I can create another formula to calculate the difference and show that the person worked on it for 15 minutes.
Any help on how to do this is greatly appreciated, thanks!