1Z0-007 · Question #8
Examine the description of the EMPLOYEES table: Which statement shows the department ID, minimum salary, and maximum salary paid in that department, only of the minimum salary is less then 5000 and…
The correct answer is D. SELECT dept_id, MIN(salary), MAX(salary). This SELECT statement shows correct result. Incorrect Answers A: To provide correct data statement needs also GROUP BY clause. B: This statement will not provide correct results. C: HAVING clause can be used only in conjunction with GROUP BY clause. E: You need only grouping by…
Question
Examine the description of the EMPLOYEES table:
Which statement shows the department ID, minimum salary, and maximum salary paid in that department, only of the minimum salary is less then 5000 and the maximum salary is more than 15000?
Exhibit
Options
- ASELECT dept_id, MIN(salary(, MAX(salary)
- BSELECT dept_id, MIN(salary), MAX(salary)
- CSELECT dept_id, MIN(salary), MAX(salary)
- DSELECT dept_id, MIN(salary), MAX(salary)
- ESELECT dept_id, MIN(salary), MAX(salary)
How the community answered
(39 responses)- A3% (1)
- B13% (5)
- D79% (31)
- E5% (2)
Explanation
This SELECT statement shows correct result. Incorrect Answers A: To provide correct data statement needs also GROUP BY clause. B: This statement will not provide correct results. C: HAVING clause can be used only in conjunction with GROUP BY clause. E: You need only grouping by department, not by salary.
Topics
Community Discussion
No community discussion yet for this question.
