昵称79
昵称79
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
昵称79的博客
全部文章
(共2篇)
题解 | #考试分数(三)#
将三张表连接起来,通过where to_date='9999-01-01'过滤出当前的薪水,然后根据btype判断奖金多少,就行了 case when b.btype=1 then round(c.salary*0.1,1) when b.btype=2 then round(c.salary*0...
Mysql
2022-04-22
0
130
题解 | #考试分数(三)#
分组topN问题,可简单使用窗口函数解决,这题看输出Java学科的成绩存在并列的情况,所以不能用row_number得用dense_rank(),我的答案如下: select id,name,score from( select a.id, b.name, a.score, dense_rank(...
2021-06-10
1
364