You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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;