https://leetcode.com/problems/find-total-time-spent-by-each-employee/
select event_day as day, emp_id, sum(out_time-in_time) as total_time
from Employees
group by emp_id, event_day
728x90
반응형
'자료구조 알고리즘 > 코딩테스트' 카테고리의 다른 글
198. House Robber (0) | 2022.06.11 |
---|---|
61. Rotate List (0) | 2022.06.09 |
607. Sales Person (0) | 2022.06.03 |
197. Rising Temperature (0) | 2022.06.03 |
1148. Article Views I (0) | 2022.06.03 |