adriaparcerisasDaily Active User 6
Updated 2022-10-19
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
›
⌄
⌄
WITH
daus as (
SELECT
distinct tx_from as users,
trunc(block_timestamp,'week') as weeks,
count(distinct trunc(block_timestamp,'day')) as active_days
from osmosis.core.fact_transactions
group by 1,2
having active_days>=4
),
daus_2 as (
select distinct users from daus
),
/*prices as (
select trunc(recorded_at,'week') as weeks,
symbol,
avg(price) as price
from osmosis.core.dim_prices
group by 1,2
),*/
transfers as (
SELECT
trunc(block_timestamp,'week') as weeks,
transfer_type,
-- sender,
count(distinct tx_id) as txs,
count(distinct receiver) as users
from osmosis.core.fact_transfers where receiver in (select * from daus_2)
group by 1,2
)
select * from transfers
Run a query to Download Data