Hemin1. avg number per block
Updated 2022-06-29Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
›
⌄
with calls as (select
tx_id , block_id,BLOCK_TIMESTAMP::date as day_ ,
case when BLOCK_TIMESTAMP::date < '2022-01-01' then 'last six month of 2022'
else 'first six month' end as sesson
from flipside_prod_db.algorand.application_call_transaction
where BLOCK_TIMESTAMP::date>= '2021-06-01'
)
, per_block as (
select count(tx_id) as number_tx , sesson from calls group by block_id ,sesson
)
, per_day as (
select count(tx_id )as number_tx , sesson from calls group by day_ , sesson
)
select 'per block', avg(number_tx) as avg_numebr , sesson from per_block group by sesson
-- UNION
-- select 'per day' , avg(number_tx) as avg_numebr , sesson from per_day group by sesson
Run a query to Download Data