烛少
烛少
全部文章
分类
题解(53)
归档
标签
去牛客网
登录
/
注册
烛少的博客
全部文章
(共42篇)
题解 | #查找在职员工自入职以来的薪水涨幅情况#
使用窗口函数,答案正确 select distinct emp_no,(first_value(salary) over w- last_value(salary) over w)as growth from salaries s where emp_no in (select distinct e...
Mysql
2022-01-17
0
239
题解 | #在职员工的工资涨幅#
使用窗口函数first_value(),last_value();这个答案是正确的,但是因为牛客网的输出没有排序与此答案输出结果不同而出错,实际上这也是一种不错的思路。 (select distinct emp_no, first_value(salary) over w as maxsalary,...
Mysql
2022-01-17
0
272
首页
上一页
1
2
3
4
5
下一页
末页