Skip to content

Commit f3adb18

Browse files
committed
https://leetcode.com/problems/find-total-time-spent-by-each-employee/submissions/922435688/
1 parent 4c3d39c commit f3adb18

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Leetcode-SQL
22

33
https://leetcode.com/problems/recyclable-and-low-fat-products/submissions/922421670/
4+
5+
https://leetcode.com/problems/find-total-time-spent-by-each-employee/submissions/922435688/
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- https://leetcode.com/problems/find-total-time-spent-by-each-employee/submissions/922435688/
2+
3+
select event_day as day, emp_id, sum(out_time) - sum(in_time) as total_time
4+
from Employees
5+
group by emp_id, event_day

0 commit comments

Comments
 (0)