I have a table that a new line gets added to when the machine stops with reason for stopping, when the machine gets going again I want to add the time lost.
So when the machine stops the table will look like this:
ID | reason | time_lost
1 | short circuit | 1:23
2 | rainy day | 2:54
3 | short circuit | 2:12
4 | lunch
|
Then when they start it again after lunch it will look like this
ID | reason | time_lost
1 | short circuit | 1:23
2 | rainy day | 2:54
3 | short circuit | 2:12
4 | lunch | 28:34
How do I insert time_lost into he last entry?
I'm not worried about how to calculate the lost time, I've done that. Just need to insert it in the right place.