Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9a6c695

Browse files
Find Total Time Spent by Each Employee
1 parent b75b7b8 commit 9a6c695

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Link: https://leetcode.com/problems/find-total-time-spent-by-each-employee/
2+
Tool: MS SQL Server
3+
4+
5+
6+
7+
8+
9+
select event_day as day, emp_id, sum(out_time-in_time) as total_time
10+
from Employees
11+
group by event_day, emp_id

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /