Skip to main content
Code To HaveN
Toggle navigation
Home
Categories
Online Judge
YouTube Tutorials
About
Search tutorials and solutions
Search
Categories
/
MySQL
/
Group By
Solved programming problem
For each department_id, show the no of managers from that department using employees table
Source code
Copy code
SELECT DEPARTMENT_ID, COUNT(MANAGER_ID) FROM employees GROUP BY DEPARTMENT_ID;
Join the discussion
Add your comment
Your name
Comment
Post comment
Add your comment