5 lines
245 B
SQL
5 lines
245 B
SQL
/*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; |