From 025f3d320807eb5a026b343bf3f073edd4fd382a Mon Sep 17 00:00:00 2001 From: Manohar Reddy Poreddy Date: Sat, 30 Dec 2023 10:49:07 +0530 Subject: [PATCH] Update # 1303. Find the Team Size.sql --- Schools and Organizations/# 1303. Find the Team Size.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Schools and Organizations/# 1303. Find the Team Size.sql b/Schools and Organizations/# 1303. Find the Team Size.sql index bfbf2d8..bd94c53 100644 --- a/Schools and Organizations/# 1303. Find the Team Size.sql +++ b/Schools and Organizations/# 1303. Find the Team Size.sql @@ -10,7 +10,7 @@ FROM Employee # Calculate in the Select statement SELECT employee_id, (SELECT COUNT(1) - FROM Employee e2 WHERE e2.employee_id = e.employee_id) AS team_size + FROM Employee e2 WHERE e2.team_id = e.team_id) AS team_size FROM Employee e ;