behnamqMedian Transaction count per Block
    Updated 2022-06-30
    with TX_cnt_past_year as(
    Select block_id as bk_scop, count(tx_id) as cnt_TX
    from flipside_prod_db.algorand.application_call_transaction
    where block_timestamp >= '2021-07-01'
    GROUP BY bk_scop
    ),
    TX_cnt_Second_half_of_2021 as(
    Select block_id as bk_scop_21, count(tx_id) as cnt_TX_21
    from flipside_prod_db.algorand.application_call_transaction
    where block_timestamp >= '2021-07-01'
    and block_timestamp < '2022-01-01'
    GROUP BY bk_scop_21
    ),
    Tx_cnt_First_half_of_2022 as(
    Select block_id as bk_scop_22, count(tx_id) as cnt_TX_22
    from flipside_prod_db.algorand.application_call_transaction
    where block_timestamp >= '2022-01-01'
    GROUP BY bk_scop_22
    )

    select * from (
    --select '2021 second 6month - Average TX per block' as Tage, avg(cnt_TX_21) as Value_of from TX_cnt_Second_half_of_2021
    -- UNION
    --select '2022 first 6month - Average TX per block' as Tage, avg(cnt_TX_22) as Value_of from Tx_cnt_First_half_of_2022
    -- UNION
    select '2021 second 6month - Median TX per block' as Tage, median(cnt_TX_21) as Value_of from TX_cnt_Second_half_of_2021
    UNION
    select '2022 first 6month - Median TX per block' as Tage, median(cnt_TX_22) as Value_of from Tx_cnt_First_half_of_2022
    ) ORDER by tage






    Run a query to Download Data