cheeyoung-kekPolygon July transactions
    Updated 2022-07-11

    with july_transaction as (

    select
    date_trunc('day', block_timestamp) as date,
    count(distinct tx_hash) as transactions,
    count(distinct from_address) as total_users
    from polygon.core.fact_transactions
    where date >= '2022-07-01'
    and status = 'SUCCESS'
    group by 1


    ),

    before_july_transaction as (

    select
    date_trunc('day', block_timestamp) as date,
    count(distinct tx_hash) as transactions,
    count(distinct from_address) as total_users
    from polygon.core.fact_transactions
    where date < '2022-07-01'
    and status = 'SUCCESS'
    group by 1

    )

    select *, 'After July 2022' as Period from july_transaction
    union
    select *,'Before July 2022' as Period from before_july_transaction
    Run a query to Download Data