xbackend/sql/留存4.sql
2021-07-09 16:55:45 +08:00

5 lines
209 B
SQL

select groupArray((date,login_account)) from (with groupArray(distinct binduid) as login_account,
toDate(addHours(`#event_time`, 8)) as date
select date, login_account
from zhengba.event
group by date)