QuestionQ91Verified/Manipulating DataCopy linkReport a problemAsk AstroTutorSave questionReview the description of the EMPLOYEES table: Which query is valid?ASELECT dept_id, AVG(MAX(salary)) FROM employees GROUP BY dept_id;BSELECT dept_id, join_date, SUM(salary) FROM employees GROUP BY dept_id;CSELECT dept_id, join_date, SUM(salary) FROM employees GROUP BY dept_id, join_date;DSELECT dept_id, MAX(AVG(salary)) FROM employees GROUP BY dept_id;Show AnswerAnswerExplanationA grouped Oracle SQL query may select aggregate expressions and expressions included in its GROUP BY clause. Grouping by DEPT_ID and JOIN_DATE permits both columns in the select list, while SUM(SALARY) produces the aggregate for each such group.Learn moreOracle Database SQL Language Reference: SELECTShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion