Untitled
unknown
plain_text
20 days ago
225 B
1
Indexable
Never
SELECT d.department_name, AVG(e.salary) AS average_salary, COUNT(e.employee_id) AS number_of_employee FROM departments d LEFT JOIN employees e ON d.department_id = e.department_id GROUP BY d.department_id, d.department_name;
Leave a Comment