elsina2024-07-10: 24h new user
Updated 2024-08-26
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 new_buyers AS (
SELECT
buyer_address,
MIN(block_timestamp::date) AS date
FROM
aptos.nft.ez_nft_sales
GROUP BY
buyer_address
),
new_sellers AS (
SELECT
seller_address,
MIN(block_timestamp::date) AS date
FROM
aptos.nft.ez_nft_sales
GROUP BY
seller_address
),
date_series AS (
SELECT
'2024-01-01'::date AS day
UNION ALL
SELECT
day + INTERVAL '1 day'
FROM
date_series
WHERE
day + INTERVAL '1 day' <= current_date
),
buyer_counts AS (
SELECT
date::date AS day,
COUNT(*) AS new_user
FROM
new_buyers
WHERE
QueryRunArchived: QueryRun has been archived