FatemeTheLadyWB 9
Updated 2022-11-04
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
›
⌄
--credit to Jinx
with
b as(
select address
,sum(balance/ pow(10,6)) as BALANCE
from osmosis.core.fact_daily_balances
where CURRENCY = 'uosmo'
and date::date = CURRENT_DATE-1
group by 1
order by 2 desc
limit 10
)
select row_number() over(order by BALANCE desc) as rank
, * from b
Run a query to Download Data