177. Nth Highest Salary

Posted yuesi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了177. Nth Highest Salary相关的知识,希望对你有一定的参考价值。

CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT
BEGIN
DECLARE temp int;
SET temp = N-1;
RETURN (
# Write your mysql query statement below.
SELECT DISTINCT Salary
FROM Employee
ORDER BY Salary DESC
LIMIT temp,1
);
END












以上是关于177. Nth Highest Salary的主要内容,如果未能解决你的问题,请参考以下文章

177. Nth Highest Salary

177. Nth Highest Salary

sql 177. Nth Highest Salary(1st).sql

sql 177. Nth Highest Salary(1st).sql

sql 177. Nth Highest Salary(1st).sql

sql 177. Nth Highest Salary(1st).sql