developer_viola2024-03-11 04:03 PM
    Updated 2024-05-17
    with eth as (
    select date_trunc('month', block_timestamp) as block_date, count(DISTINCT TX_HASH) as Etheruem
    from ethereum.core.fact_transactions
    where block_date > '2021-12-31'
    group by block_date),

    arb as (
    select date_trunc('month', block_timestamp) as block_date, count(DISTINCT TX_HASH) as Arbitrum
    from arbitrum.core.fact_transactions
    where block_date > '2021-12-31'
    group by block_date
    ),

    poly as (
    select date_trunc('month', block_timestamp) as block_date, count(DISTINCT TX_HASH) as Polygon
    from polygon.core.fact_transactions
    where block_date > '2021-12-31'
    group by block_date
    ),

    base as (
    select date_trunc('month', block_timestamp) as block_date, count(DISTINCT TX_HASH) as Base
    from base.core.fact_transactions
    where block_date > '2021-12-31'
    group by block_date
    ),

    op as (
    select date_trunc('month', block_timestamp) as block_date, count(DISTINCT TX_HASH) as Optimism
    from optimism.core.fact_transactions
    where block_date > '2021-12-31'
    group by block_date
    )

    select eth.*, arb.Arbitrum, poly.Polygon, op.Optimism, base.Base from eth
    left join arb
    QueryRunArchived: QueryRun has been archived