ArioMUX Distribution of Users by # Interactions
Updated 2024-04-08
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
›
⌄
with User_stats as (
select
distinct from_address as User_address,
count(distinct tx_hash) as "# TXs"
from
avalanche.core.fact_transactions
where
to_address = '0x5898c3e218a8501533d771c86e2fa37743ea2add'
and STATUS = 'SUCCESS'
group by
1
)
select
case
when "# TXs" = 1 then 'A: 1 TXs'
when "# TXs" > 1
and "# TXs" <= 3 then 'B: 1-3 TXs'
when "# TXs" > 3
and "# TXs" <= 5 then 'C: 3-5 TXs'
when "# TXs" > 5
and "# TXs" <= 10 then 'D: 5-10 TXs'
when "# TXs" > 10
and "# TXs" <= 100 then 'E: 10-100 TXs'
else 'F: > 100 TXs'
end as Status,
count(distinct User_address) as "# Users"
from
User_stats
group by
1
QueryRunArchived: QueryRun has been archived