首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
日向🐏
获赞
0
粉丝
0
关注
4
看过 TA
0
女
河南财经政法大学
2021
数据分析师
IP属地:未知
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑日向🐏吗?
发布(2)
评论
刷题
收藏
日向🐏
关注TA,不错过内容更新
关注
2021-10-11 09:47
河南财经政法大学 数据分析师
题解 | #平均工资#
select avg(salary) from salaries where salary not in(select min(salary) from salaries where to_date = '9999-01-01') and salary not in(select max(salary) from salaries where to_date = '9999-01-01') and to_date = '9999-01-01';
0
点赞
评论
收藏
分享
2021-08-24 12:07
河南财经政法大学 数据分析师
题解 | #对所有员工的薪水按照salary降序进行1-N的排名#
select emp_no,salary,DENSE_RANK() over(order by salary desc) rkfrom salarieswhere to_date='9999-01-01'order by rk,emp_no asc;用窗口函数进行排序,再进行升降序的选择
0
点赞
评论
收藏
分享
1
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客企业服务