CarlOwOs(3) New Addresses year colors
Updated 2022-07-28
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
›
⌄
with new_poly_2020 as (
select from_address as address , min(block_timestamp)::date as min_date, '2020' as type
from flipside_prod_db.polygon.transactions
group by address
having min_date <= '2020-12-31' and min_date >= '2020-01-01'
) , new_poly_2021 as (
select from_address as address , min(block_timestamp)::date as min_date, '2021' as type
from flipside_prod_db.polygon.transactions
group by address
having min_date <= '2021-12-31' and min_date >= '2021-01-01'
) , new_poly_2022 as (
select from_address as address , min(block_timestamp)::date as min_date, '2022' as type
from flipside_prod_db.polygon.transactions
group by address
having min_date >= '2022-01-01'
)
select count(address) as new_address, min_date, type,
sum(new_address) over (order by min_date asc rows between unbounded preceding and current row) as cumulative_address
from new_poly_2020 group by min_date, type
UNION
select count(address) as new_address, min_date, type,
sum(new_address) over (order by min_date asc rows between unbounded preceding and current row) as cumulative_address
from new_poly_2021 group by min_date, type
UNION
select count(address) as new_address, min_date, type,
sum(new_address) over (order by min_date asc rows between unbounded preceding and current row) as cumulative_address
from new_poly_2022 group by min_date, type
Run a query to Download Data