select department_name, e.manager_id, min(salary) from employees e, departments d where e.`department_id` = d.`department_id` and commission_pct is not null group by e.department_id;
select department_name, d.manager_id, min(salary) from employees e, departments d where e.`department_id` = d.`department_id` and commission_pct is not null group by department_name;