1661. Average Time of Process per Machine
Description
+----------------+---------+
| Column Name | Type |
+----------------+---------+
| machine\_id | int |
| process\_id | int |
| activity\_type | enum |
| timestamp | float |
+----------------+---------+
The table shows the user activities for a factory website.
(machine\_id, process\_id, activity\_type) is the primary key of this table.
machine\_id is the ID of a machine.
process\_id is the ID of a process running on the machine with ID machine\_id.
activity\_type is an ENUM of type ('start', 'end').
timestamp is a float representing the current time in seconds.
'start' means the machine starts the process at the given timestamp and 'end' means the machine ends the process at the given timestamp.
The 'start' timestamp will always be before the 'end' timestamp for every (machine\_id, process\_id) pair.ac
Last updated