首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
GB279824
获赞
4
粉丝
0
关注
1
看过 TA
9
中国计量大学
2025
测试工程师
IP属地:浙江
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑GB279824吗?
发布(201)
评论
刷题
收藏
GB279824
关注TA,不错过内容更新
关注
05-26 13:57
中国计量大学 测试工程师
2025-05-26
在牛客打卡15天,今天也很努力鸭!
0
点赞
评论
收藏
分享
05-25 21:38
中国计量大学 测试工程师
题解 | 使用含有关键字exists查找未分配具体部门的员工的所有信息。
select * from employees e where not exists( select emp_no from dept_emp d where e.emp_no = d.emp_no );
0
点赞
评论
收藏
分享
05-25 21:34
中国计量大学 测试工程师
题解 | 分页查询employees表,每5行一页,返回第2页的数据
# select * # from employees # limit (2-1)*5,5; select * from employees limit 5 offset 5;
0
点赞
评论
收藏
分享
05-25 21:17
中国计量大学 测试工程师
题解 | 平均工资
select avg(salary) as avg_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 salary not in (select min(salary) from salaries where to_date = '9999-01-01');
0
点赞
评论
收藏
分享
05-25 21:12
中国计量大学 测试工程师
题解 | 按照dept_no进行汇总
select dept_no, group_concat(emp_no) as employees from dept_emp group by dept_no; GROUP_CONCAT([DISTINCT] column_name [ORDER BY column_name [ASC|DESC]] [SEPARATOR separator])参数说明DISTINCT :可选关键字,用于去除重复值。column_name :要拼接的列名。ORDER BY :可选子句,用于指定拼接时的排序规则。SEPARATOR :可选参数,用于指定拼接时的分隔符,默认分隔符是逗号(,)。
0
点赞
评论
收藏
分享
05-25 21:07
中国计量大学 测试工程师
题解 | 获取employees中的first_name
select first_name from employees order by substring(first_name,-2,2) ASC;
0
点赞
评论
收藏
分享
05-25 21:05
中国计量大学 测试工程师
题解 | 查找字符串中逗号出现的次数
select id,length(string)-length(replace(string,',','')) from strings; 用总的字符长度减去删除掉','符号的字符总长度得到的就是其中','符号的数量。
0
点赞
评论
收藏
分享
05-25 20:26
中国计量大学 测试工程师
题解 | 将所有获取奖金的员工当前的薪水增加10%
update salaries set salary = salary * 1.1 where to_date = '9999-01-01' and emp_no in( select emp_no from emp_bonus )
0
点赞
评论
收藏
分享
05-25 20:12
中国计量大学 测试工程师
题解 | 在audit表上创建外键约束,其emp_no对应employees_test表的主键id
alter table audit add foreign key(emp_no) references employees_test(id);
0
点赞
评论
收藏
分享
05-25 20:08
中国计量大学 测试工程师
题解 | 将titles_test表名修改为titles_2017
# alter table titles_test rename as titles_2017; rename table titles_test to titles_2017;
0
点赞
评论
收藏
分享
05-25 20:06
中国计量大学 测试工程师
题解 | 将id=5以及emp_no=10001的行数据替换成id=5以及emp_no=10005
replace into titles_test select 5, 10005,title,from_date,to_date from titles_test where id = 5;
0
点赞
评论
收藏
分享
05-25 20:04
中国计量大学 测试工程师
题解 | 将所有to_date为9999-01-01的全部更新为NULL
update titles_test set to_date = NULL,from_date = '2001-01-01' where to_date = '9999-01-01';
0
点赞
评论
收藏
分享
05-25 19:58
中国计量大学 测试工程师
题解 | 删除emp_no重复的记录,只保留最小的id对应的记录。
delete from titles_test where id not in( select min_id from( select min(id) as min_id from titles_test group by emp_no )as a);
0
点赞
评论
收藏
分享
05-25 17:36
中国计量大学 测试工程师
2025-05-25
在牛客打卡14天,今天也很努力鸭!
0
点赞
评论
收藏
分享
05-24 00:39
中国计量大学 测试工程师
2025-05-24
在牛客打卡13天,今天也很努力鸭!
0
点赞
评论
收藏
分享
1
5
6
7
8
9
14
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务