Tobi_1enchanting-emerald
    Updated 2024-07-31
    WITH Daily_Transactions AS (
    SELECT
    DATE_TRUNC('DAY', BLOCK_TIMESTAMP) AS transaction_day,
    PLATFORM_NAME,
    COUNT(*) AS total_transactions
    FROM
    base.nft.ez_nft_sales
    WHERE
    BLOCK_TIMESTAMP >= DATEADD(DAY, -30, CURRENT_TIMESTAMP())
    AND BLOCK_TIMESTAMP < CURRENT_TIMESTAMP()
    GROUP BY
    transaction_day,
    PLATFORM_NAME
    )
    SELECT
    transaction_day,
    PLATFORM_NAME,
    total_transactions
    FROM
    Daily_Transactions
    ORDER BY
    transaction_day, PLATFORM_NAME;

    QueryRunArchived: QueryRun has been archived