afonsoUntitled Query
    Updated 2023-01-19
    with t as (
    select
    count(distinct tx_hash) as txns_count_may_2022,
    count(distinct from_address) as users_count_may_2022
    from ethereum.core.fact_transactions
    where block_timestamp between '2022-06-01' and '2022-06-30'
    ),

    t2 as (
    select
    count(distinct tx_hash) as txns_count_january_2023,
    count(distinct from_address) as users_count_january_2023
    from ethereum.core.fact_transactions
    where block_timestamp between '2022-12-19' and '2023-01-19'
    )

    select *,
    ((txns_count_january_2023 - txns_count_may_2022) / txns_count_may_2022) * 100 as txn_percent_change,
    ((users_count_january_2023 - users_count_may_2022) /users_count_may_2022) * 100 as user_percent_change
    from t join t2
    Run a query to Download Data