5 lines
245 B
MySQL
5 lines
245 B
MySQL
|
/*26. Write a query in SQL to display the department name and number of employees in each of the department.*/
|
||
|
SELECT department_name, COUNT(*)
|
||
|
FROM employees
|
||
|
NATURAL JOIN departments
|
||
|
GROUP BY department_name;
|