Skip to content

1741. Find Total Time Spent by Each Employee 👍

1
2
3
4
5
6
SELECT
  event_day AS day,
  emp_id,
  SUM(out_time - in_time) AS total_time
FROM Employees
GROUP BY 1, 2;