datavortexUsers activities
    Updated 2024-12-25
    --SELECT DISTINCT label_type, label_subtype, label from aptos.core.dim_labels
    /*
    SELECT DISTINCT
    t.sender,
    d.label_type
    FROM
    aptos.core.fact_transactions t
    LEFT JOIN
    aptos.core.dim_labels d
    ON
    t.sender = d.address
    WHERE
    DATE_TRUNC('month', t.block_timestamp) = DATE_TRUNC('month', CURRENT_DATE);
    */

    SELECT
    d.label_type,
    COUNT(DISTINCT t.sender) AS address_count
    FROM
    aptos.core.fact_transactions t
    LEFT JOIN
    aptos.core.dim_labels d
    ON
    t.sender = d.address
    WHERE
    DATE_TRUNC('month', t.block_timestamp) = DATE_TRUNC('month', CURRENT_DATE)
    GROUP BY
    d.label_type
    ORDER BY
    address_count DESC;


    QueryRunArchived: QueryRun has been archived