Second-highest distinct salary
SubqueriesMedium
Return the second-highest distinct salary as salary. (Two people sharing the top salary do not count twice.)
Tables
departments: id, nameemployees: id, name, department_id, manager_id, salary, hired_on
Row order does not matter. Column names do not have to match, but the number of columns and the values do.