Which query is valid?

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;

Download Printable PDF. VALID exam to help you PASS.

4 thoughts on “Which query is valid?

  1. ans C : when two columns in projection used then group by should also include both columns

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.