177. Nth Highest Salary

Posted ffeng0312

tags:

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

CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT
BEGIN
declare M int;
set M = N-1;
RETURN
(
# Write your mysql query statement below.
select distinct salary from Employee order by salary desc limit M,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