Moeeth vs polygon - fees
    Updated 2022-07-08
    WITH fee_e as (
    SELECT
    date_trunc('day', block_timestamp)::date as days,
    SUM(tx_FEE) AS tot_fees,
    'Ethereum' AS type
    FROM ethereum.core.fact_transactions
    WHERE days > '2022-07-01'
    GROUP BY 1
    )

    , fee_p as (
    select
    date_trunc('day', block_timestamp)::date as days,
    sum(tx_FEE) as tot_fees,
    'Polygon' AS type
    from
    polygon.core.fact_transactions
    where block_timestamp >= '2022-07-01'
    group by 1
    )

    SELECT *
    FROM fee_e
    UNION ALL
    SELECT *
    FROM fee_p
    Run a query to Download Data