feyikemifascinating-lime
Updated 2024-09-04
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
›
⌄
SELECT
Date_trunc('day', Block_timestamp) AS Date,
COUNT(DISTINCT user) AS total_unique_users
FROM
(
SELECT
Block_timestamp,
buyer AS user
FROM flow.nft.ez_nft_sales
WHERE BLOCK_TIMESTAMP :: Date >= '2024-01-01'
AND marketplace IN (
'A.4eb8a10cb9f87357.NFTStorefront',
'A.4eb8a10cb9f87357.NFTStorefrontV2'
)
UNION ALL
SELECT
Block_timestamp,
seller AS user
FROM flow.nft.ez_nft_sales
WHERE BLOCK_TIMESTAMP :: Date >= '2024-01-01'
AND marketplace IN (
'A.4eb8a10cb9f87357.NFTStorefront',
'A.4eb8a10cb9f87357.NFTStorefrontV2'
)
) AS all_users
GROUP BY 1
QueryRunArchived: QueryRun has been archived