Find the count of managers in each group
Loading
Find the count of managers in each group
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kiran KumarPosted Feb 9, 2025, 5:47 AM
I need to fetch based on the following
employee managers - count of managers assigned to employees
department managers - count of managers assigned to departments
employee and department managers - count of managers assigned to employees and departments
Attached table structure diagram
Muhammad Imran AnsariPosted Feb 8, 2025, 8:10 AM
To find the count of managers in each group in SQL, you can use the GROUP BY clause along with the COUNT() function. Assuming you have a table named
Employeeswith the following structure: