Ant-DAO-MentLEAD&LAG
Updated 2023-11-01
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
›
⌄
with
raw_data as (
select
*
from
external.tokenflow_eth.blocks
where
block between 15827610 and 15827615
)
-- LEAD&LAG Example
select
load_id,
block,
-- LEAD shows the next block
LEAD(block) over (
order by
block
) as lead_block,
-- LEAD shows the previous block
LAG(block) over (
order by
block
) as lag_block
from
raw_data
Run a query to Download Data