MLDZMNmx3
Updated 2023-10-20
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
34
35
36
›
⌄
with t1 as (
SELECT
date_trunc('day',BLOCK_TIMESTAMP) as day,
from_address as user
from avalanche.core.fact_transactions
where to_address='0x5898c3e218a8501533d771c86e2fa37743ea2add'
and STATUS = 'SUCCESS'
and block_timestamp>='2022-09-01'
),
t2 as (
select
day,
count(distinct user) as daily_users
from (
select * from t1
)
group by 1
),
t3 as (
select
week,
count(distinct user) as weekly_user
from (
select date_trunc('week',day) as week,* from t1
)
group by week
),
t4 as(
select
date_trunc('week',day) as week,
avg(daily_users) as avg_DAU_users
Run a query to Download Data