SQL Interview Question: Find the Nth Highest Salary
A favourite interview question: given employees(id, name, department, salary) , find the Nth highest salary. Mention how you handle ties and missing values. 1. DISTINCT with LIMIT/OFFSET -- 3rd highest distinct salary SELECT DISTINCT salary FROM employees ORDE...