MySql_176. 第二高的薪水 + limit + distinct + null

时间:2021-03-02 12:23:52   收藏:0   阅读:0

MySql_176. 第二高的薪水

LeetCode_MySql_176

题目描述

技术图片

题解分析

技术图片
技术图片

代码实现

# Write your MySQL query statement below
select(
    select distinct Salary 
        from Employee
        order by Salary desc
        limit 1 offset 1) as SecondHighestSalary;
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!