Lc176-第二高的薪水
第二高的薪水 # Write your MySQL query statement below --排序后用limit找到第二条数据 --ifnull函数为了观看直观并且拼凑null的情况 --distinct为了避免相同工资都参与排序的情况 select ifnull((select distinct salary from Employee order by Salary desc limit 1,1),null) as SecondHighestSalary
相关推荐
silencehgt 2020-04-17
昊 2019-12-11
haiross 2020-01-14
xiaobing00 2011-02-07
spartmap 2019-11-03
oraclemch 2019-07-05
天涯客Blog 2011-07-31
jbossllx 2018-11-21
HackAge 2018-10-15
talkingDB 2015-01-23
江南一叶 2013-02-23
galoisgodel 2015-06-04
lweixiong 2013-01-27
oraclestudyroad 2012-06-17
anshenoracle 2012-02-21
linuxjourney 2013-09-11
cshpanda 2011-11-21