Leetcode - 1741. Find Total Time Spent by Each Employee
문제
정답
SELECT event_day AS day, emp_id, SUM(out_time) - SUM(in_time) AS total_time
FROM Employees
GROUP BY emp_id, event_day
SELECT event_day AS day, emp_id, SUM(out_time) - SUM(in_time) AS total_time
FROM Employees
GROUP BY emp_id, event_day