Question DB-SQL-0024
EasyWhich names does this query return, in order, for the table below?
Table staff:
| id | name | dept | salary |
|---|---|---|---|
| 1 | Ravi | IT | 50000 |
| 2 | Meena | HR | 40000 |
| 3 | John | IT | 60000 |
| 4 | Sara | Sales | 45000 |
| 5 | Ali | HR | 38000 |
SELECT name FROM staff WHERE salary > 45000 ORDER BY name;
- A.
John, Ravi, Sara
- B.
Sara, John, Ravi
- C.
Sign up free to see the answer and a step-by-step explanation.