新用户视图

This commit is contained in:
wuaho 2021-07-20 09:58:05 +08:00
parent 6063dfc47c
commit 7b2dd128c2

4
新用户视图.sql Normal file
View File

@ -0,0 +1,4 @@
create view zhengba.new_account as select toDate(addHours(`#event_time`,8)) as date, groupArray(`binduid`) as account,length(account) as num
from zhengba.event
where role_idx = 1
group by toDate(addHours(`#event_time`,8))