DrsimonUntitled Query
Updated 2022-09-10
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 summary as (
select 'ethereum' as chain ,
block_number as block_no,
datediff('second', lag(block_timestamp) over (order by block_timestamp asc),
block_timestamp) as interval_time,
tx_count
from ethereum.core.fact_blocks
union
select 'polygon' ,
block_number as block_no,
datediff('second', lag(block_timestamp) over (order by block_timestamp asc),
block_timestamp) as interval_time,
tx_count
from polygon.core.fact_blocks
union
select 'arbitrum',
block_number as block_no,
datediff('second', lag(block_timestamp) over (order by block_timestamp asc),
block_timestamp) as interval_time,
tx_count
from arbitrum.core.fact_blocks
union
select 'solana',
block_id as block_no,
datediff('second', lag(block_timestamp) over (order by block_timestamp asc),
block_timestamp) as interval_time,
tx_count
from solana.core.fact_blocks
union
select 'optimism',
block_number as block_no,
datediff('second', lag(block_timestamp) over (order by block_timestamp asc),
block_timestamp) as interval_time,
tx_count
from optimism.core.fact_blocks
)
Run a query to Download Data