首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
Shadow201909161708693
获赞
0
粉丝
0
关注
0
看过 TA
0
青岛大学
IP属地:广东
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑Shadow201909161708693吗?
发布(9)
评论
刷题
收藏
Shadow201909161708693
关注TA,不错过内容更新
关注
2024-03-26 12:21
青岛大学
题解 | 很灵活的一题,通过非独特键相连,不同筛选形成错位
select a.emp_no,(a.salary - b.salary) growth from salaries a inner join salaries b on a.emp_no=b.emp_no and (a.emp_no,a.from_date) in (select emp_no,max(from_date) from salaries group by emp_no) and (b.emp_no,b.from_date) in (select emp_no,min(from_date) from salaries group by emp_no) and a.to_date=...
0
点赞
评论
收藏
分享
2024-03-26 11:16
青岛大学
题解 |
select last_name,first_name,dept_name from employees e left join dept_emp d on e.emp_no=d.emp_no left join departments m on d.dept_no=m.dept_no
0
点赞
评论
收藏
分享
2024-03-25 18:40
青岛大学
题解 | #获取薪水第二多的emp_no以及薪水salary
select emp_no,salary from salaries where salary= (select distinct salary from salaries order by salary desc limit 1,1) order by emp_no
0
点赞
评论
收藏
分享
2024-03-25 18:17
青岛大学
题解 |
select * from employees where emp_no%2 <> 0 and last_name <> 'Mary' order by hire_date desc
0
点赞
评论
收藏
分享
2024-03-25 07:07
青岛大学
题解 | #查找薪记录超15条的emp_no以及次数t#
select emp_no,count(*) t from salaries group by emp_no having t>15
0
点赞
评论
收藏
分享
2024-03-25 06:09
青岛大学
题解 | #查找当前薪水详情以及部门编号dept_no#
select salaries.*,dept_manager.dept_no from salaries inner join dept_manager on salaries.emp_no = dept_manager.emp_no order by salaries.emp_no
0
点赞
评论
收藏
分享
2024-03-24 16:43
青岛大学
题解 | #查找入职员工时间排名倒数第三的员工所有信息#
select * from employees where hire_date=(select distinct hire_date from employees order by hire_date desc limit 2,1)
0
点赞
评论
收藏
分享
2024-03-24 16:31
青岛大学
题解 | #查找入职员工时间排名倒数第三的员工所有信息#
select a.emp_no,a.birth_date,a.first_name,a.last_name,a.gender,a.hire_date from (select *,dense_rank()over(order by hire_date desc) ran from employees) a where a.ran=3
0
点赞
评论
收藏
分享
2024-03-24 16:17
青岛大学
题解 | #查找最晚入职员工的所有信息#
select * from employees order by hire_date desc limit 1
0
点赞
评论
收藏
分享
1
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客企业服务