saeedmznBase Distribition transactions
Updated 2023-12-26
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
›
⌄
with wallet as ( select
FROM_ADDRESS ,
count(distinct tx_hash) transactions
from base.core.fact_transactions
where STATUS ='SUCCESS'
group by 1
order by 1
)
select case when transactions =1 then 'One transaction'
when transactions BETWEEN 2 and 5 then '2 - 5 Transactions'
when transactions BETWEEN 5 and 10 then '5 - 10 Transactions'
when transactions BETWEEN 10 and 20 then '10 - 20 Transactions'
when transactions BETWEEN 20 and 50 then '20 - 50 Transactions'
when transactions BETWEEN 50 and 100 then '50 - 100 Transactions'
when transactions BETWEEN 100 and 200 then '100 - 200 Transactions'
when transactions BETWEEN 200 and 500 then '200 - 500 Transactions'
when transactions BETWEEN 500 and 1000 then '500 - 1000 Transactions'
else 'Greater than 1K transactions'
end range ,
count (FROM_ADDRESS) num_wallets
from wallet
group by 1
QueryRunArchived: QueryRun has been archived