behnamqMedian Transaction count per Block
Updated 2022-06-30Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
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