首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
牛客264897283号
获赞
10
粉丝
0
关注
0
看过 TA
6
运营
IP属地:上海
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑牛客264897283号吗?
发布(52)
评论
刷题
收藏
牛客264897283号
关注TA,不错过内容更新
关注
03-12 22:24
运营
题解 | 牛客网用户数据集的大小
import pandas as pd dd=pd.read_csv('Nowcoder.csv',sep=',',dtype=object) print(dd.shape)
0
点赞
评论
收藏
分享
03-12 22:22
运营
题解 | 用pandas查看牛客网用户数据
import pandas as pd dd=pd.read_csv('Nowcoder.csv',sep=',',dtype=object) print(dd.head(6))
0
点赞
评论
收藏
分享
03-12 05:28
运营
题解 | 批量插入数据
insert into actor (actor_id, first_name, last_name, last_update) values (1 ,'PENELOPE' ,'GUINESS', '2006-02-15 12:34:33'), (2 ,'NICK', 'WAHLBERG','2006-02-15 12:34:33')
0
点赞
评论
收藏
分享
03-12 05:24
运营
题解 | 创建一个actor表,包含如下列信息
CREATE TABLE actor ( actor_id smallint (5) not null comment '主键id', first_name varchar(45) not null comment '名字', last_name varchar(45) not null comment '姓氏', last_update date not null comment '最后更新时间,默认是系统的当前时间', PRIMARY KEY (actor_id) )
0
点赞
评论
收藏
分享
03-12 05:17
运营
题解 | 使用子查询的方式找出属于Action分类的所有电影对应的title,description
select a.title, a.description from film a join film_category c using (film_id) join category b using (category_id) where b.name = 'Action'
0
点赞
评论
收藏
分享
03-12 05:13
运营
题解 | 使用join查询方式找出没有分类的电影id以及名称
select film_id, title from film where film_id not in ( select f.film_id from film f join film_category fc using (film_id) )
0
点赞
评论
收藏
分享
03-12 04:26
运营
题解 | 获取员工其当前的薪水比其manager当前薪水还高的相关信息
SELECT e.emp_no AS emp_no, dm.emp_no AS manager_no, e.salary AS emp_salary, mg.salary AS manager_salary FROM salaries e INNER JOIN dept_emp de on e.emp_no=de.emp_no INNER JOIN dept_manager dm on dm.dept_no=de.dept_no INNER JOIN salaries mg on mg.emp_no=dm.emp_no WHERE e.salary > mg.salary;
0
点赞
评论
收藏
分享
03-12 04:19
运营
题解 | 获取员工其当前的薪水比其manager当前薪水还高的相关信息
SELECT e.emp_no AS emp_no, dm.emp_no AS manager_no, e.salary AS emp_salary, mg.salary AS manager_salary FROM salaries e INNER JOIN dept_emp de ON e.emp_no = de.emp_no INNER JOIN dept_manager dm ON de.dept_no = dm.dept_no INNER JOIN salaries mg ON dm.emp_no = mg.emp_no WHERE e.salary > mg.salary;
0
点赞
评论
收藏
分享
03-12 03:49
运营
题解 | 获取所有非manager员工当前的薪水情况
select b.dept_no, d.emp_no, d.salary from salaries d left join dept_emp b using (emp_no) where d.emp_no not in( select emp_no from dept_manager )
0
点赞
评论
收藏
分享
03-12 03:48
运营
题解 | 获取所有非manager员工当前的薪水情况
select b.dept_no, d.emp_no, d.salary from salaries d left join dept_emp b using (emp_no) where d.emp_no not in ( select emp_no from dept_manager )
0
点赞
评论
收藏
分享
03-12 03:40
运营
题解 | 对所有员工的薪水按照salary降序进行1-N的排名
select emp_no, salary, dense_rank() over ( order by salary desc ) as t_rank from ( select emp_no, salary, rank() over ( order by salary desc, emp_no asc ) as t_rank from salaries ) c
0
点赞
评论
收藏
分享
03-12 03:09
运营
题解 | 统计各个部门的工资记录数
select b.dept_no, a.dept_name, count(c.salary) as sum from salaries c left join dept_emp b using (emp_no) left join departments a using (dept_no) group by b.dept_no, a.dept_name order by b.dept_no asc
0
点赞
评论
收藏
分享
03-12 03:04
运营
题解 | 查找在职员工自入职以来的薪水涨幅情况
with c as ( select a.emp_no, b.salary from employees a join salaries b on a.emp_no = b.emp_no and a.hire_date = b.from_date ), d as ( select * from ( select emp_no, salary, rank() over ( partition by emp_no order by to_date desc ) as ranking from salaries ) ff where ranking = 1 ) select c.emp_no, d....
0
点赞
评论
收藏
分享
03-12 02:41
运营
题解 | 查找在职员工自入职以来的薪水涨幅情况
with c as ( select a.emp_no, b.salary from employees a join salaries b on a.emp_no = b.emp_no and a.hire_date = b.from_date ), d as ( select * from ( select emp_no, salary, rank() over ( partition by emp_no order by to_date desc ) as ranking from salaries ) ff where ranking = 1 ) select c.emp_no, d....
0
点赞
评论
收藏
分享
03-12 00:54
运营
题解 | 查找所有员工的last_name和first_name以及对应的dept_name
select a.last_name, a.first_name, b.dept_name from employees a left join dept_emp c using (emp_no) left join departments b using (dept_no)
0
点赞
评论
收藏
分享
1
2
3
4
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务