Skip to content

Commit 43e1567

Browse files
authored
Update employees-project-allocation.sql
1 parent e5201c7 commit 43e1567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MySQL/employees-project-allocation.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ WITH workload_cte AS (
66
p.project_id,
77
e.name AS employee_name,
88
p.workload AS project_workload,
9-
AVG(p.workload) OVER(PARTITION BY e.team) AS average_team_workload
9+
AVG(p.workload) OVER(PARTITION BY e.team ORDER BY NULL) AS average_team_workload
1010
FROM Employees e
1111
LEFT JOIN Project p
1212
ON e.employee_id = p.employee_id

0 commit comments

Comments
 (0)