Examine the description of the EMPLOYEES table:
Which query is valid?
A. SELECT dept_id, MAX(AVG(salary)) FROM employees GROUP BY dept_id;
B. SELECT dept_id, AVG(MAX(salary)) FROM employees GROUP BY dept_id;
C. SELECT dept_id, join_date, SUM(salary) FROM employees GROUP BY dept_id, join_date;
D. SELECT dept_id, join_date, SUM(salary) FROM employees GROUP BY dept_id;
С
ans C : when two columns in projection used then group by should also include both columns
C
C