NavidCopy of Copy of Untitled Query
    Updated 2022-10-25
    select
    date(block_timestamp) as day,
    'Near' as network,
    sum(TRANSACTION_FEE) as "Daily Fee Value",
    sum("Daily Fee Value") over (order by day asc) as "Cumulative Fee Value",
    avg("Daily Fee Value") over (order by day asc rows between 14 preceding and current row) as "Moving Average"
    from
    near.core.fact_transfers
    where day > CURRENT_DATE-90
    group by
    day
    union all
    select
    date(block_timestamp) as day,
    'Solana' as network,
    sum(TRANSACTION_FEE) as "Daily Fee Value",
    sum("Daily Fee Value") over (order by day asc) as "Cumulative Fee Value",
    avg("Daily Fee Value") over (order by day asc rows between 14 preceding and current row) as "Moving Average"
    from
    near.core.fact_transfers
    where day > CURRENT_DATE-90
    group by
    day
    Run a query to Download Data