display the department name and number of employees in each of the department.
CREATE TABLE employees (department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR)
SELECT department_name, COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE employees (department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR) Question: display the department name and number of employees in each of the department. [/INST] SELECT department_name, COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name </s>