adambalaUntitled Query
Updated 2022-12-07Copy Reference Fork
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
›
⌄
with
txs_classic as (
select
date_trunc('week',block_timestamp) as date,
tx_sender,
count(distinct block_timestamp::date) as days_active
from terra.core.fact_transactions txs
where tx_succeeded
and block_timestamp > current_date() - interval '90 days'
group by 1,2
having days_active > 3
)
select
date,
count(distinct tx_sender) as users
from txs_classic
group by 1
Run a query to Download Data