Skip to content
Advertisement

List the “manager’s name” and the “number of employees” in that manager’s department

“List the “manager’s name” and the “number of employees” in that manager’s department” is the requested query for my class. I cannot embed pictures yet so I will do my best to have them formatted properly on here

Here is some data from the employees table:

the code I currently have is:

This code seems to give me all employees and the number of employees in their department. From the question, I believe that I only need the 3 employees with the with job = ‘MANAGER’. Unfortunely, I cannot figure out how to accomplish this and have the correct count of employees in their dept. Any direction or help would be appreciated.

Advertisement

Answer

Please correct me if I’m wrong.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement