austinbAave Votes by Day
Updated 2022-12-12Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
›
⌄
with base as (
select av.*,
day_of_week_name,
date_trunc('week',block_timestamp) as block_week,
case when day_of_week_name in ('Saturday','Sunday') then 'weekend' else 'weekday' end as day_type
from ethereum.aave.ez_votes av
left join ethereum.core.dim_dates
on block_timestamp::date = date_day
where block_timestamp::date > '2022-06-01'
)
select
block_week,
day_type,
day_of_week_name,
count(*) as votes
from base
group by 1,2,3
Run a query to Download Data