Oracle
1Z0-007 · Question #88
Exhibit: Examine the data in the EMPLOYEES table. Examine the subquery: SELECT last_name FROM employees WHERE salary IN (SELECT MAX(salary) FROM employees GROUP BY department_id); Which statement is…
The correct answer is A. The SELECT statement is syntactically accurate. See the full explanation below for the reasoning.
Question
Exhibit:
Examine the data in the EMPLOYEES table. Examine the subquery:
SELECT last_name FROM employees WHERE salary IN (SELECT MAX(salary) FROM employees GROUP BY department_id); Which statement is true?
Exhibit
Options
- AThe SELECT statement is syntactically accurate.
- BThe SELECT statement does not work because there is no HAVING clause.
- CThe SELECT statement does not work because the column specified in the GROUP BY clause is
- DThe SELECT statement does not work because the GROUP BY clause should be in the main query
How the community answered
(36 responses)- A78% (28)
- B3% (1)
- C8% (3)
- D11% (4)
Community Discussion
No community discussion yet for this question.
