offerplus
offerplus
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
offerplus的博客
全部文章
(共4篇)
题解 | #牛客网每日正确与错误的答题次数#
nowcoder['year-month-day'] = pd.to_datetime(nowcoder['date']).dt.date print(nowcoder.groupby(['result','year-month-day']).size())
Python3
2022-07-11
2
291
题解 | #各个视频的平均完播率#
select video_id, round(完播次数/播放次数,3) avg_comp_play_rate from ( select a.video_id, count(if(watch_time>=duration,id,null)) 完播次数, ...
Mysql
2022-04-19
0
355
题解 | #对所有员工的薪水按照salary降序进行1-N的排名#
mysql四大排名函数简介 1、row_number row_number在排名时序号连续不重复,即使需要相同数据也如此 2、rank rank会把排序的值相同的归为一组,序号保持一致。后续排序序号不会连续执行 3、dense_rank dense_rank会把相同值归为一组,序号相同,后续序号连续...
Mysql
2022-02-28
0
261
题解 | #查找入职员工时间排名倒数第三的员工所有信息#
limit(m,n) => 从m行(不包含m)开始返回n条记录, m默认为0 select * from employees where hire_date = ( select distinct hire_date from employees order by hire_date des...
Mysql
2022-01-22
1
301