Question: By department, display average salary of employees who get a commission percentage
SQL: SELECT department_id ,  AVG ( salary )  FROM employees WHERE commission_pct ! =  "null" GROUP BY department_id