Retrieve Top Three Unique Employee Salaries

Find the top 3 salaries without returning duplicate salary values.

sql

SELECT DISTINCT salary FROM employees ORDER BY salary DESC LIMIT 3;

This query selects unique salary values from the "employees" table, sorts them in descending order, and restricts the output to the top three records.

PromptDB can make mistakes. Please double-check responses.