mattkstewMetamask vs. Other Platforms 7
    Updated 2022-06-23
    with tab1 as (
    select
    date_trunc('day', block_timestamp) as date1,
    sum(amount_in_usd) as Sushiswap_volume

    from ethereum.core.ez_dex_swaps
    where platform like 'sushiswap'
    group by 1
    )

    , tab2 as (
    select
    date_trunc('day', block_timestamp) as date2,
    sum(amount_in_usd) as Uniswap_volume

    from ethereum.core.ez_dex_swaps
    where platform like '%uniswap%'
    and amount_in_usd < 1000000000
    group by 1
    )

    select *



    from tab1 left outer join tab2 on date1 = date2
    where date1 > current_date - 90
    Run a query to Download Data