数仓练习(上)_数仓指标练习-CSDN博客

网站介绍:文章浏览阅读412次。在会员分析中计算最近七天连续三天活跃会员数-- 添加gidselect device_id, dt, date_sub(dt, row_number() over(partition by device_id order by dt)) gid from dws.dws_member_start_day where dt between date_sub(current_date, -7) and current_date;-- 求出大于等于3天的记录select de_数仓指标练习