ʕ•ᴥ•ʔ 李业林的博客

记录下LC刷题的成长,因为断断续续的刷,忘得比较快,记录下

176. 第二高的薪水
题解:

# Write your MySQL query statement below
select (select distinct  Salary as SecondHighestSalary 
from Employee order by Salary DESC limit 1,1) as SecondHighestSalary

考察了limit偏移量的使用:


183. 从不订购的客户
没啥说的 not in+子查询 或者使用连接+ not null