Eman-RazDistribution of Users By # of Days of Activity
    Updated 2025-03-22
    with tab1 as (select from_address as user, count(distinct block_timestamp::date), case
    when count(distinct block_timestamp::date)=1 then '1 Day'
    when count(distinct block_timestamp::date)>1 and count(distinct block_timestamp::date)<=7 then '2-7 Days'
    when count(distinct block_timestamp::date)>7 and count(distinct block_timestamp::date)<=30 then '8-30 Days'
    when count(distinct block_timestamp::date)>30 then '>30 Days'
    end as "#Days of Activity"
    from ronin.core.fact_transactions
    where tx_succeeded='TRUE'
    group by 1)

    select "#Days of Activity", count(distinct user) as "Users Count"
    from tab1
    group by 1
    order by 2 desc
    Last run: about 1 month ago
    #Days of Activity
    Users Count
    1
    2-7 Days2832399
    2
    1 Day2162740
    3
    8-30 Days1700466
    4
    >30 Days1203868
    4
    83B
    14s