Count the number of employees who joined each month in the last year. DROP TABLE IF…
- User
Count the number of employees who joined each month in the last year.
DROP TABLE IF EXISTS employees; CREATE TABLE employees ( employee_id INT PRIMARY KEY, employee_name VARCHAR(100), join_date DATE ); INSERT INTO employees VALUES (1, 'Anita', '2023-06-01'), (2, 'Rahul', '2023-06-15'), (3, 'Vikram', '2023-07-20');
- Assistant
To count the number of employees who joined each month in the last year, you can use the following SQL query: