MLDZMNusers4
Updated 2023-04-10
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
›
⌄
with t2 as(
select
SIGNERS[0] as users,
Count(distinct tx_id) as no_txn,
count (Distinct block_timestamp::Date) as active_days,
min (block_timestamp) as first_transaction,
datediff(day,first_transaction,CURRENT_DATE) as wallet_age
from solana.core.fact_events
where SUCCEEDED='TRUE'
and PROGRAM_ID = '4MangoMjqJ2firMokCjjGgoK8d4MXcrgL7XJaL3w6fVg'
group by 1
)
select
case
when wallet_age<=20 then 'under 20 Days'
when wallet_age > 20 and wallet_age <= 50 then '20- 50 Days'
when wallet_age > 50 and wallet_age <= 100 then '50- 100 Days'
when wallet_age > 100 then 'over 100 Days'
end as gp,
count(distinct users) as no_users
from t2
group by 1 having gp is not null
Run a query to Download Data