Lordkingbear
Updated 2022-09-02
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
›
⌄
with a as (
select BLOCK_NUMBER,
block_timestamp,
datediff(second, lag(block_timestamp, 1) over (order by block_timestamp asc), block_timestamp) as block_time ,'polygon ' as title
from polygon.core.fact_blocks
-- order by BLOCK_NUMBER
UNION
select BLOCK_NUMBER,
block_timestamp,
datediff(second, lag(block_timestamp, 1) over (order by block_timestamp asc), block_timestamp) as block_time ,' arbitrum' as title
from arbitrum.core.fact_blocks
-- order by BLOCK_NUMBER ,title
UNION
select BLOCK_NUMBER,
block_timestamp,
datediff(second, lag(block_timestamp, 1) over (order by block_timestamp asc), block_timestamp) as block_time ,'optimism ' as title
from optimism.core.fact_blocks
-- order by BLOCK_NUMBER ,title
UNION
select BLOCK_NUMBER,
block_timestamp,
datediff(second, lag(block_timestamp, 1) over (order by block_timestamp asc), block_timestamp) as block_time ,' ethereum' as title
from ethereum.core.fact_blocks
-- order by BLOCK_NUMBER ,title
)
select max(block_time) as "Max BlockTime", min(block_time) as "Min Blocktime" ,title
from a group by title
Run a query to Download Data