IBM
C2090-320 · Question #60
Which SQL statement will retrieve the department number (WORKDEPT) and the highest salary (SALARY) for each department in a table named EMPLOYEE and arrange the result set in ascending order by…
The correct answer is B. SELECT workdept, MAX(salary). ghts.commsql.doc/doc/r0059224.html
Column Analysis
Question
Which SQL statement will retrieve the department number (WORKDEPT) and the highest salary (SALARY) for each department in a table named EMPLOYEE and arrange the result set in ascending order by department?
Options
- ASELECT workdept, salary
- BSELECT workdept, MAX(salary)
- CSELECT workdept, MAX(salary)
- DSELECT workdept, MAX(salary)
How the community answered
(42 responses)- A2% (1)
- B81% (34)
- C5% (2)
- D12% (5)
Explanation
ghts.commsql.doc/doc/r0059224.html
Topics
#MAX aggregate#GROUP BY#ORDER BY#department salary
Community Discussion
No community discussion yet for this question.