Count Employees Hired Per Each Year

Find the number of employees hired in each year.

sql

SELECT YEAR(hire_date) AS hire_year, COUNT(*) AS employee_count FROM employees GROUP BY YEAR(hire_date);

This query extracts the year from the "hire_date" column and counts the total number of records grouped by each year.

PromptDB can make mistakes. Please double-check responses.