picasoshare transaction
    Updated 2025-02-14
    WITH user_transaction_counts AS (
    SELECT
    from_address AS user,
    COUNT(DISTINCT TX_HASH) AS tx_count
    FROM ronin.core.fact_transactions
    GROUP BY from_address
    ),
    transaction_categories AS (
    SELECT
    tx_count,
    CASE
    WHEN tx_count < 10 THEN 'Very Low Activity <10'
    WHEN tx_count BETWEEN 10 AND 100 THEN 'Low Activity 10-100'
    WHEN tx_count BETWEEN 100 AND 500 THEN 'Moderate Activity 100-500'
    WHEN tx_count BETWEEN 500 AND 1000 THEN 'High Activity 500-1000'
    WHEN tx_count BETWEEN 1000 AND 5000 THEN 'Very High Activity 1000-5000'
    ELSE 'Extreme Activity >5000'
    END AS category
    FROM user_transaction_counts
    )
    SELECT
    category,
    COUNT(*) AS user_count
    FROM transaction_categories
    GROUP BY category
    ORDER BY user_count DESC;
    Last run: about 1 month ago
    CATEGORY
    USER_COUNT
    1
    Very Low Activity <104822164
    2
    Low Activity 10-1002344533
    3
    Moderate Activity 100-500231989
    4
    High Activity 500-10007519
    5
    Very High Activity 1000-50002737
    6
    Extreme Activity >5000576
    6
    205B
    38s