Skip to content

Commit 75a55ef

Browse files
committed
readme added
1 parent 011ef17 commit 75a55ef

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Write your MySQL query statement below
2+
SELECT m.employee_id,
3+
m.name,
4+
count(e.employee_id) AS reports_count,
5+
round(avg(e.age)) AS average_age
6+
FROM
7+
employees e JOIN employees m
8+
ON
9+
e.reports_to = m.employee_id
10+
GROUP BY
11+
employee_id
12+
ORDER BY
13+
employee_id;

0 commit comments

Comments
 (0)