34. Sort and Limit
EasyDatabases~7 min
Return the name and salary of the three highest-paid employees, starting with the highest.
Unlike the other query problems, row order *is* checked here.
Examples
Example 1
- Input:
- employees
- Output:
- Frank Uy | 95000, Ana Reyes | 72000, Ben Cruz | 68000
Constraints
Return exactly two columns: name, then salary.Row order matters — highest salary first.Return exactly three rows.