Select Top Five Highest Paid Employees

Find the top 5 highest-paid employees in the company.

sql

SELECT id, name, salary FROM employees ORDER BY salary DESC LIMIT 5;

This query selects the "id", "name", and "salary" columns from the "employees" table, sorts the records by "salary" in descending order, and restricts the output to the top 5 rows.

PromptDB can make mistakes. Please double-check responses.