flyingfishUntitled Query
Updated 2022-07-11
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
28
29
30
31
32
33
34
35
36
›
⌄
⌄
with receivers as (
select
trunc(block_timestamp, 'day') as date1,
to_address as address
from polygon.core.fact_transactions
where block_timestamp >= '2022-05-01'
and tx_hash is not null
),
senders as (
select
trunc(block_timestamp, 'day') as date1,
from_address as address
from polygon.core.fact_transactions
where block_timestamp >= '2022-05-01'
and tx_hash is not null
),
temp as (
select *
from receivers
union all
select * from senders
)
select
date1,
count(distinct(address))
from temp
group by date1
order by date1 asc
/* select
trunc(block_timestamp, 'day') as date1,
count(DISTINCT(to_address)),
count(DISTINCT(from_address))
from polygon.core.fact_transactions
where block_timestamp >= '2022-07-01'
Run a query to Download Data