7 lines
272 B
SQL
7 lines
272 B
SQL
select arrayJoin(groupArray(date)) as dd,
|
|
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) |