mz0111user 1
Updated 2023-01-03Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
›
⌄
SELECT
*,
sum(new_users) over (ORDER by min_day) as cume_users
FROM (
SELECT
min_day,
count(*) as new_users
FROM (
SELECT
tx_from,
min(date_trunc('day', BLOCK_TIMESTAMP)) as min_day
FROM osmosis.core.fact_transactions
GROUP by 1
)
GROUP BY 1
)
ORDER BY 1 DESC
Run a query to Download Data