ValiMohammadiUntitled Query
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
›
⌄
with maintable as (
select date_trunc('day', block_timestamp) as day,
case
when day >= '2022-06-01 00:00:00.000' then 'Second Half of 2022'
else 'First Half of 2022'
end as period,
count(tx_id)/1440 as Transactions_Per_minutes
from flow.core.fact_transactions
where block_timestamp >= '2022-01-01'
group by 1)
select period,
avg(Transactions_Per_minutes) as avg_tpm
from maintable
group by 1
Run a query to Download Data