1741. Find Total Time Spent by Each Employee
Description
+-------------+------+
| Column Name | Type |
+-------------+------+
| emp\_id | int |
| event\_day | date |
| in\_time | int |
| out\_time | int |
+-------------+------+
(emp\_id, event\_day, in\_time) is the primary key of this table.
The table shows the employees' entries and exits in an office.
event\_day is the day at which this event happened, in\_time is the minute at which the employee entered the office, and out\_time is the minute at which they left the office.
in\_time and out\_time are between 1 and 1440.
It is guaranteed that no two events on the same day intersect in time, and in\_time < out\_time.ac
Last updated