SALARIES — Third highest distinct salary

Write a query that returns the third highest salary in the table. Duplicate salaries count as one (e.g. with 20, 20, 10, 5 the second highest is 10).

Table schema
CREATE TABLE SALARIES (Professor_Name TEXT, Department TEXT, Salary INT);
Hint (click to show)
DISTINCT, ORDER BY DESC, then OFFSET.