HadisehDaily Active User 3
Updated 2022-10-19
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 tb as ( select tx_from,count(DISTINCT tx_id) as transactions
from osmosis.core.fact_transactions
where TX_STATUS = 'SUCCEEDED'
group by tx_from),
t1 as ( select DISTINCT tx_from
from tb
where transactions >= 20)
select date(block_timestamp) as date,
'Active wallet' as status,
count(TX_ID) AS total_transaction,
sum(total_transaction) over (order by date asc) as cumulative_transaction
from osmosis.core.fact_transactions
where tx_from in (select tx_from from t1)
and date >= CURRENT_DATE - 90
group by date,status
UNION
select date(block_timestamp) as date,
'Normal wallet' as status,
count(TX_ID) AS total_transaction,
sum(total_transaction) over (order by date asc) as cumulative_transaction
from osmosis.core.fact_transactions
where tx_from not in (select tx_from from t1)
and date >= CURRENT_DATE - 90
group by date,status
Run a query to Download Data