首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
课程
专栏·文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
在线笔面试、雇主品牌宣传
登录
/
注册
在写bug的牛油很人来疯
获赞
5
粉丝
0
关注
0
看过 TA
4
哈尔滨工业大学
2012
测试工程师
IP属地:北京
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑在写bug的牛油很人来疯吗?
发布(23)
刷题
在写bug的牛油很人来疯
2023-12-26 19:47
测试工程师
很久不见
2023-12-26
在牛客打卡3天,今天也很努力鸭!
0
点赞
评论
收藏
转发
在写bug的牛油很人来疯
2023-08-30 10:48
测试工程师
题解 | #输出提交次数大于2次的用户ID且倒序排列#
select user_id from ( select user_id, count(done_time) as ct from done_questions_record group by user_id having ct > 2 ) as dqr order by user_id desc 竟然是按user_id倒序排列,一开始还以为按提交次数倒序排列
0
点赞
评论
收藏
转发
在写bug的牛油很人来疯
2023-08-29 18:39
测试工程师
题解 | #查询用户刷题日期和下一次刷题日期#
select user_id, date, ifnull ( lead (date) over ( partition by user_id order by date ), 'None' ) as nextdate from questions_pass_record 窗口函数LEAD()函数:用于获取指定列的当前行之后的一行数据IFNULL()函数:ifnull(A,B) 如果A有值,返回A的...
刷题!刷题!
0
点赞
评论
收藏
转发
在写bug的牛油很人来疯
2023-08-29 17:16
测试工程师
题解 | #查询每天刷题通过数最多的前二名用户id和刷题数#
select date, user_id, pass_count from ( select date, user_id, pass_count, RANK() over ( PARTITION BY date order by pass_count desc ) rk ...
刷题!刷题!
0
点赞
评论
收藏
转发
在写bug的牛油很人来疯
2023-08-29 15:01
测试工程师
题解 | #分群并计算群体人数#
select case when age < 20 then '20以下' when age >= 20 and age <= 50 then '20-50' when age > 50 then '50以上' else '未填写' end age_group, count(customer_id) as user_count from customers_info group by age_group 使用case函数
刷题!刷题!
0
点赞
评论
收藏
转发
在写bug的牛油很人来疯
2023-08-29 14:55
测试工程师
题解|#请按城市对客户进行排序,如果城市为空,则按国家排序#
select * from customers_info order by city, country
刷题!刷题!
0
点赞
评论
收藏
转发
在写bug的牛油很人来疯
2023-08-29 11:29
已编辑
测试工程师
题解 | #判断其是否有过购买记录#
select customer_id, if (latest_place_order_date is not null, 1, 0) as if_placed_order from customers_info 因为表中用的是“latest_place_order_date” 最后一次下单日期,所以每个customer_id只有一条记录;如果这是一个订单记录表,又如何处理呢?
刷题!刷题!
0
点赞
评论
收藏
转发
在写bug的牛油很人来疯
2023-08-28 18:08
测试工程师
题解 | #查询职位发布时间在2021年后或职位城市为...
select job_id, boss_id, company_id from (select job_id, boss_id, company_id, job_city from job_info where YEAR (post_time) >= 2021 union select job_id, boss_id, company_id, job_city from job_info where job_city like '上海%' ) t order by jo...
刷题!刷题!
0
点赞
评论
收藏
转发
在写bug的牛油很人来疯
2023-08-28 17:47
测试工程师
题解 | #查询职位城市在北京或者职位工资高于...
select job_id, company_id from job_info where job_city like '北京%' union all select job_id, company_id from job_info where salary > 100000
刷题!刷题!
0
点赞
评论
收藏
转发
在写bug的牛油很人来疯
2023-08-28 17:17
测试工程师
刷了19道所谓VIP的sql题,感觉还不如普通题好
2023-08-28
在牛客打卡2天,今天学习:刷题 19 道/代码提交 24 次
0
点赞
评论
收藏
转发
在写bug的牛油很人来疯
2023-08-28 17:14
测试工程师
题解 | #查询每个公司查看过的投递用户数#
select ji.company_id as company_id, count(distinct dr.user_id) as cnt from job_info ji inner join deliver_record dr on dr.job_id = ji.job_id and dr.resume_if_checked = 1 group by ji.company_id
刷题!刷题!
0
点赞
评论
收藏
转发
在写bug的牛油很人来疯
2023-08-28 16:39
测试工程师
题解 | #查询被投递过的职位信息#
select ji.* from job_info ji inner join deliver_record dr on ji.job_id = dr.job_id 这题目明显怪怪的,不是让统计cnt吗。。。
刷题!刷题!
0
点赞
评论
收藏
转发
在写bug的牛油很人来疯
2023-08-28 16:24
测试工程师
题解|#查询2022以来刷题用户的user_id和毕业院校#
select user_id, university from user_info where user_id in ( select distinct user_id from questions_pass_record where YEAR (date) >= 2022 )
刷题!刷题!
0
点赞
评论
收藏
转发
在写bug的牛油很人来疯
2023-08-28 16:17
测试工程师
题解 | #查询2022年毕业用户的刷题记录#
select user_id, question_type, device, pass_count, date from questions_pass_record where user_id in ( select user_id from user_info where graduation_year = 2022 )
刷题!刷题!
0
点赞
评论
收藏
转发
在写bug的牛油很人来疯
2023-08-28 16:04
测试工程师
题解| #统计不同类型题目的刷题数,并按刷题数进行升序排列#
select question_type, sum(pass_count) as passCnt from questions_pass_record_detail group by question_type order by passCnt 这个题目还算简单
刷题!刷题!
0
点赞
评论
收藏
转发
1
2
工具箱
TA的圈子
暂未加入圈子
TA的圈子
TA的笔记
暂无笔记
TA的笔记
登录
0
天
已登录
0
天
连续登录
0
人
今日访客
牛客网
牛客企业服务