MLDZMNmadu2
    Updated 2023-06-03


    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