LeetCode 177: Nth Highest Salary
Problem Restatement We are given a table named Employee . Column Type id int salary int Each row stores one employee and that employee's salary. We need to write a SQL function that returns the n th highest distinct salary. If there are fewer than n distinct salaries, the function should return null . The official problem asks for the n th highest distinct salary from Employee , returning null...