kentoweak-azure
    Updated 2025-03-01
    WITH blockchain_data AS (
    -- Arbitrum
    SELECT
    'Arbitrum' AS blockchain,
    COUNT(*) AS total_transactions,
    MIN(BLOCK_TIMESTAMP) AS start_time,
    MAX(BLOCK_TIMESTAMP) AS end_time
    FROM
    arbitrum.core.fact_transactions
    WHERE
    BLOCK_TIMESTAMP >= '2023-02-01' AND BLOCK_TIMESTAMP < '2023-03-01'

    UNION ALL

    -- BSC
    SELECT
    'BSC' AS blockchain,
    COUNT(*) AS total_transactions,
    MIN(BLOCK_TIMESTAMP) AS start_time,
    MAX(BLOCK_TIMESTAMP) AS end_time
    FROM
    bsc.core.fact_transactions
    WHERE
    BLOCK_TIMESTAMP >= '2023-02-01' AND BLOCK_TIMESTAMP < '2023-03-01'

    UNION ALL

    -- Ethereum
    SELECT
    'Ethereum' AS blockchain,
    COUNT(*) AS total_transactions,
    MIN(BLOCK_TIMESTAMP) AS start_time,
    MAX(BLOCK_TIMESTAMP) AS end_time
    FROM
    ethereum.core.fact_transactions
    WHERE
    Last run: 3 months ago
    BLOCKCHAIN
    TOTAL_TRANSACTIONS
    TOTAL_SECONDS
    TPS
    1
    Arbitrum25821981241919910.673773
    2
    BSC93053002241919738.464417
    3
    Ethereum29793399241918812.315454
    4
    NEAR1117259624191984.618306
    5
    Polygon80163484241919833.136388
    6
    Swell0
    6
    212B
    6s