2021-09-27 16:35
京东数科_数据分析 想要上岸的水鬼:取连续出现3次的数字,可考虑:
select
distinct
NUM
from
(
select
NUM,
rn_Id - rn_NUM as rn_ID_gp,
count(1) as cnt
from
(
select
NUM,
row_number() over(order by Id) as rn_Id,
row_number() over(partition by NUM order by Id) as rn_NUM
from
NUM_table
) a
group by
NUM,
rn_Id - rn_NUM
) t
where
cnt >= 3
投递字节跳动等公司10个岗位 >
0 点赞 评论 收藏
分享
2021-09-04 17:54
京东数科_数据分析 0 点赞 评论 收藏
分享
关注他的用户也关注了: