0-MIDaverage Tx Per (Hour,Minute,Second) by Network
    Updated 2022-12-12
    with tab1 as (
    select 'FLOW'as net
    ,date_trunc('day',BLOCK_TIMESTAMP) as day
    ,count(distinct TX_ID) as tx_count
    ,tx_count/86400 as tps
    ,tx_count/1440 as tpm
    ,tx_count/24 as tph
    from flow.core.fact_transactions
    where BLOCK_TIMESTAMP>='2022-01-01'
    and BLOCK_TIMESTAMP<>current_date
    group by 1,2

    union all

    select 'ETHEREUM'as net
    ,date_trunc('day',BLOCK_TIMESTAMP) as day
    ,count(distinct TX_HASH) as tx_count
    ,tx_count/86400 as tps
    ,tx_count/1440 as tpm
    ,tx_count/24 as tph
    from ethereum.core.fact_transactions
    where BLOCK_TIMESTAMP>='2022-01-01'
    and BLOCK_TIMESTAMP<>current_date
    group by 1,2

    union all

    select 'AVALANCHE'as net
    ,date_trunc('day',BLOCK_TIMESTAMP) as day
    ,count(distinct TX_HASH) as tx_count
    ,tx_count/86400 as tps
    ,tx_count/1440 as tpm
    ,tx_count/24 as tph
    from avalanche.core.fact_transactions
    where BLOCK_TIMESTAMP>='2022-01-01'
    and BLOCK_TIMESTAMP<>current_date
    Run a query to Download Data