Sorting1 / 6
EASY·Output prediction

Given this table (employees): | id | name | dept | salary | |----|-------|-------|--------| | 1 | Alice | Sales | 70000 | | 2 | Bob | Eng | 90000 | | 3 | Carol | Eng | 80000 | | 4 | Dave | Sales | 70000 | What does this query return?

SELECT name FROM employees ORDER BY dept ASC, salary DESC;

Sign in to save your progress.