/*15. Write a query in SQL to display the name of the department, average salary and number of employees working in that department who got commission.*/ SELECT department_name, AVG(salary), COUNT(commission_pct) FROM departments JOIN employees USING (department_id) GROUP BY department_name;