MLDZMNmadu2
Updated 2023-06-03
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
›
⌄
with tb1 as (select
distinct purchaser as users,
count(distinct tx_id) as no_txn
from solana.core.fact_nft_sales s
left outer join solana.core.dim_labels b on s.mint=b.address
where SUCCEEDED='TRUE'
and LABEL = 'mad lads'
group by 1
)
select
case
when no_txn=1 then 'a. 1 time purchaser'
when no_txn> 1 and 3 then 'b. 1-3 times purchaser'
when no_txn between 3 and 10 then 'c. 3-10 times purchaser'
when no_txn>=10 then 'd. more then 10 times purchaser'
end as gp,
count(distinct users) as no_wl
from tb1
group by 1
Run a query to Download Data