rezarwzDaily new users copy
Updated 2024-08-10
999
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 all_data as (
SELECT
*,
dense_rank() OVER (
PARTITION BY blockchain
ORDER BY
date_part('epoch', date) / (30 * 24 * 60 * 60)
) as month_rank,
dense_rank() OVER (
PARTITION BY blockchain
ORDER BY
date_trunc('day', date)
) as day_rank,
dense_rank() OVER (
PARTITION BY blockchain
ORDER BY
date_part('epoch', date) / (7 * 24 * 60 * 60)
) as week_rank
FROM
(
SELECT
date_trunc('{{time_frame}}', block_Timestamp) as date,
'Blast' as blockchain,
count(DISTINCT from_address) as "# of New Wallets"
FROM
blast.core.fact_transactions
where
(from_address, block_Timestamp) in (
SELECT
from_address,
min(block_Timestamp)
from
blast.core.fact_transactions
group by
1
)
QueryRunArchived: QueryRun has been archived