Examine this data in the EMPLOYEES table:
Which statement will execute successfully?
Examine this data in the EMPLOYEES table:
Which statement will execute successfully?
The correct answer should involve only the grouped column and aggregate functions. Option D uses MAX(last_name), an aggregate function, and SUM(salary), another aggregate function, along with the grouped column dept_id. This is valid SQL syntax. Options A, B, and C reference non-aggregate functions (INSTR, STDDEV, and LENGTH respectively) without including them in the GROUP BY clause, which violates SQL grouping rules.
D is correct
C is invalid and returns the error : ORA-00979: not a GROUP BY expression
Admins, why so many questions are marked incorrectly?
D should be the correct answer
D tested
D is correct
D correct answer
D correct