Select e1.Department, count (e1.id) as “number of employees”
From Employees e1
inner join employees e2 on e1.manager_id=e2.id
Where e1.Salary > e2.salary
Group by e1.Department
Select e1.Department, count (e1.id) as “number of employees”
From Employees e1
inner join employees e2 on e1.manager_id=e2.id
Where e1.Salary > e2.salary
Group by e1.Department
WENXUECITY.COM does not represent or guarantee the truthfulness, accuracy, or reliability of any of communications posted by other users.
Copyright ©1998-2025 wenxuecity.com All rights reserved. Privacy Statement & Terms of Use & User Privacy Protection Policy