bachiUntitled Query
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 ethereum
AS (SELECT day,
Count(DISTINCT wallet) AS users,
'Ethereum' AS Chain
FROM (SELECT Date(block_timestamp) AS day,
from_address AS wallet
FROM flipside_prod_db.ethereum_core.fact_transactions
WHERE block_timestamp >= '2022-01-01')
/*WHERE (SELECT Count(*)
FROM flipside_prod_db.ethereum_core.fact_transactions
WHERE from_address = wallet
AND block_timestamp >= '2022-01-01') > 1*/
GROUP BY day),
solana
AS (SELECT day,
Count(DISTINCT wallet) AS users,
'Solana' AS Chain
FROM (SELECT Date(block_timestamp) AS day,
signers AS wallet
FROM flipside_prod_db.solana.fact_transactions
WHERE block_timestamp >= '2022-01-01')
WHERE (SELECT Count(signers)
FROM flipside_prod_db.solana.fact_transactions
WHERE signers = wallet
AND block_timestamp >= '2022-01-01') > 1
GROUP BY day),
flow
AS (SELECT day,
Count(DISTINCT wallet) AS users,
'Flow' AS Chain
FROM (SELECT Date(block_timestamp) AS day,
payer AS wallet
FROM flow.core.fact_transactions
WHERE block_timestamp >= '2022-01-01')
WHERE (SELECT Count(payer)
FROM flow.core.fact_transactions
Run a query to Download Data