display the average salary of employees for each department who gets a commission percentage.
select department_id, avg(salary) from employees where commission_pct != "null" group by department_id