I'm trying to report (using CR10) on an Oracle database table which has this structure:
PersonID
Status
StartTime
EndTime
So far, so straightforward. Now a person can go through a four stage process:
Stage 1 - Idle, indicated by Status codes of I (idle) or O (off)
Stage 2 - work assigned, Status code of AS
Stage 3 - work agreed, Status code of AG
Stage 4 - working, Status code of W
Now I need to report the time taken between the start of Stage 3 to the start of Stage 4. Easy enough, right? Except I only need to do this where each process loop began with a status code of I, and exclude those process loops which began with a status code of O.
How can I do this?!
THanks in advance for any suggestions.
PersonID
Status
StartTime
EndTime
So far, so straightforward. Now a person can go through a four stage process:
Stage 1 - Idle, indicated by Status codes of I (idle) or O (off)
Stage 2 - work assigned, Status code of AS
Stage 3 - work agreed, Status code of AG
Stage 4 - working, Status code of W
Now I need to report the time taken between the start of Stage 3 to the start of Stage 4. Easy enough, right? Except I only need to do this where each process loop began with a status code of I, and exclude those process loops which began with a status code of O.
How can I do this?!
THanks in advance for any suggestions.
![[pc2] [pc2] [pc2]](/data/assets/smilies/pc2.gif)