MLDZMNChamp4
    Updated 2022-10-10
    select
    date_trunc('month',block_timestamp) as month,
    case
    when LABEL ilike '%collectorz club%' then 'Collectorz Club'
    when LABEL ilike '%Suites%' then 'Suites'
    when LABEL ilike '%laidback lions%' then 'Laidback Lions'
    else null end as Sport_NFTs,
    count(TX_ID) as sale_no,
    count(distinct PURCHASER) as buyer_no,
    sum(SALES_AMOUNT) as volume
    from solana.core.fact_nft_sales s left outer join solana.core.dim_labels b on s.mint=b.address
    where SUCCEEDED='TRUE'
    group by 1,2 having Sport_NFTs is not null
    Run a query to Download Data