SeleçãoArbitrum Retention Rate
    Updated 2023-12-09
    with first_month as
    (select
    distinct ORIGIN_FROM_ADDRESS as users
    from
    arbitrum.defi.ez_dex_swaps
    where
    BLOCK_TIMESTAMP between current_date-365 and current_date-335
    and
    PLATFORM like '%trader%') ,
    ------------------------------------
    second_month as
    (select distinct ORIGIN_FROM_ADDRESS as users
    from
    arbitrum.defi.ez_dex_swaps
    where
    BLOCK_TIMESTAMP between current_date-335 and current_date-305
    and
    PLATFORM like '%trader%'),
    -------------------------------------------------------
    third_month as
    (select distinct ORIGIN_FROM_ADDRESS as users
    from
    arbitrum.defi.ez_dex_swaps
    where
    BLOCK_TIMESTAMP between current_date-305 and current_date-275
    and
    PLATFORM like '%trader%') ,
    ------------------------------------
    fourth_month as
    (select distinct ORIGIN_FROM_ADDRESS as users
    from
    arbitrum.defi.ez_dex_swaps
    where
    BLOCK_TIMESTAMP between current_date-275 and current_date-245
    and
    PLATFORM like '%trader%'),
    Run a query to Download Data