去重自连条件t1.id=t2.id,t1.date<t2.date,取count(case when diff(t1,t2)<=1 then t2 else end)就是次日人数,改成3就是三日留存吧

相关推荐

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