permaryStellar Users
Updated 2025-02-17
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
›
⌄
with first_txn_dates as (
select
account,
min(date(block_timestamp)) as first_txn_date
from stellar.core.fact_transactions
group by account
)
select
date(t.block_timestamp) as transaction_date,
count(distinct t.account) as daily_unique_users,
count(distinct case
when date(t.block_timestamp) = f.first_txn_date
then t.account
end) as new_users,
count(distinct case
when date(t.block_timestamp) > f.first_txn_date
then t.account
end) as recurring_users
from stellar.core.fact_transactions t
left join first_txn_dates f
on t.account = f.account
group by transaction_date
order by transaction_date desc;
QueryRunArchived: QueryRun has been archived