0xHaM-dUntitled Query
    Updated 2022-12-13
    with prevtable as (
    select
    date_trunc('day' ,block_timestamp)::date as date,
    'Flow' as chain,
    count(distinct tx_id) as "Prev # of Daily Tx",
    ("Prev # of Daily Tx"/1440) as "Prev Tx/Minute - TPM",
    ("Prev # of Daily Tx"/86400) as "Prev Tx/Sec - TPS"
    from flow.core.fact_transactions
    where block_timestamp::date = '2022-01-01'
    group by 1,2

    union ALL

    select
    date_trunc('day' ,block_timestamp)::date as date,
    'Ethereum' as chain,
    count(distinct tx_hash) as "Prev # of Daily Tx",
    ("Prev # of Daily Tx"/1440) as "Prev Tx/Minute - TPM",
    ("Prev # of Daily Tx"/86400) as "Prev Tx/Sec - TPS"
    from ethereum.core.fact_transactions
    where block_timestamp::date = '2022-01-01'
    group by 1,2

    union ALL

    select
    date_trunc('day',block_timestamp)::date as date,
    'Cosmos' as chain,
    count(distinct tx_id) as "Prev # of Daily Tx",
    ("Prev # of Daily Tx"/1440) as "Prev Tx/Minute - TPM",
    ("Prev # of Daily Tx"/86400) as "Prev Tx/Sec - TPS"
    from cosmos.core.fact_transactions
    where block_timestamp::date = '2022-01-01'
    group by 1

    UNION ALL
    Run a query to Download Data