Elprognerd2 daily new buyers
    Updated 2023-03-16
    with first_t as (
    SELECT
    PURCHASER,
    min(block_timestamp) as date0
    FROM
    solana.core.fact_nft_sales
    WHERE
    SUCCEEDED = 'true'
    AND MARKETPLACE = 'tensorswap'
    GROUP BY
    1
    )
    SELECT
    date0::date as date,
    CASE
    WHEN date >= '2023-03-06' then 'Second Season'
    ELSE 'First Season'
    END as "Season",
    COUNT(distinct PURCHASER) as "Daily New Buyers",
    SUM("Daily New Buyers") OVER (ORDER BY date) as "Cumulative New Buyers"
    FROM
    first_t
    GROUP BY
    1,
    2
    order by
    1


    Run a query to Download Data