Skip to content

Commit 1f7aba8

Browse files
authored
Create 1741-find-total-time-spent-by-each-employee.sql
1 parent c8fb6bf commit 1f7aba8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Write your MySQL query statement below
2+
SELECT event_day AS day, emp_id, SUM(out_time - in_time) AS total_time
3+
FROM Employees
4+
GROUP BY event_day, emp_id;

0 commit comments

Comments
 (0)