Skip to content
DatabaseTop two per department
SQL

Top two per department

List the two best-paid employees of each department: department name, employee name, salary. Sort by department name, then salary (highest first).

The order of the rows is part of the answer.

Database

My submissions