思路:lag(date)over as lag_date sum(case when datediff(date-lag_date)<=1 and rate>=0.5 then 1 else 0)over()后面取大于等于3的就行
点赞 11

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务