MLDZMNqvs9
Updated 2022-09-28Copy Reference Fork
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 quix as (with tb1 as (select
distinct BUYER_ADDRESS as sender,
count(tx_hash) as no_transaction
from optimism.core.ez_nft_sales
where PLATFORM_NAME='quixotic'
and EVENT_TYPE='sale'
group by 1)
select
'Quix' as MARKETPLACES,
case
when no_transaction=1 then 'One time users'
when no_transaction>1 then 'More than 1 transaction'
end as buckets,
count(distinct sender) as count_users
from tb1
group by 1,2),
ME as (with tb1 as (select
distinct purchaser as sender,
MARKETPLACE,
count(tx_id) as no_transaction
from solana.core.fact_nft_sales
where marketplace ilike '%magic eden%'
and succeeded = TRUE
group by 1,2
)
select
'Magic Eden' as marketplaces,
case
when no_transaction=1 then 'One time users'
when no_transaction>1 then 'More than 1 transaction'
end as buckets,
count(distinct sender) as count_users
from tb1
Run a query to Download Data