Task: Text to Code
Input (English): display the average salary of employees for each department who gets a commission percentage.
Output (English): SELECT department_id ,  AVG(salary) FROM employees WHERE commission_pct != "null" GROUP BY department_id