Please help how to get only the working hours from each row on date changed column with the same ID CODE and deduct idle time. All inputs are dynamic and can be changed based on what user keyed in.
For example:
- START to ONHOLD-> working time: 2hr
- ON-HOLD to In Progress -> idle time: 34mins
- In Progress to On-hold -> working time: 3hrs & 16mins
and so on..
ID PROJ NAME STATUS DATE CHANGED
----------------------------------------------------
1800 abc COMPLETED 10/1/2017 14:48
1800 abc IN PROGRESS 10/1/2017 13:02
1800 abc ON-HOLD 10/1/2017 11:55
1800 abc IN PROGRESS 10/1/2017 8:07
1800 abc ON-HOLD 9/1/2017 18:29
1800 abc IN PROGRESS 9/1/2017 15:58
1800 abc PENDING DATA 9/1/2017 13:52
1800 abc IN PROGRESS 9/1/2017 13:04
1800 abc ON-HOLD 9/1/2017 11:53
1800 abc IN PROGRESS 9/1/2017 8:37
1800 abc ON-HOLD 9/1/2017 8:03
1800 abc START 9/1/2017 6:03
Thank you.