MufasaHow much volume have these users done via metamask vs other platforms [comparison] over the day
    Updated 2022-06-25

    -- select sum(amount_usd) as volume from flipside_prod_db.ethereum.dex_swaps where
    -- to_date(block_timestamp) >= '2022-06-01' and tx_id in (
    -- SELECT
    -- tx_id
    -- FROM flipside_prod_db.ethereum.transactions
    -- WHERE to_address = lower('0x881D40237659C251811CEC9c364ef91dC08D300C') and to_date(block_timestamp) >= '2022-06-01'
    -- )
    with metamask as (
    select to_date(block_timestamp) as date, sum(amount_usd) as metamask_volume from flipside_prod_db.ethereum.dex_swaps where
    tx_id in (
    SELECT
    tx_id
    FROM flipside_prod_db.ethereum.transactions
    WHERE to_address = lower('0x881D40237659C251811CEC9c364ef91dC08D300C')
    ) and date >= '2022-05-01' group by 1 order by 1
    ), other_platforms as (
    select to_date(block_timestamp) as datee, sum(amount_usd) as other_platforms_volume from flipside_prod_db.ethereum.dex_swaps where
    tx_id not in (
    SELECT
    tx_id
    FROM flipside_prod_db.ethereum.transactions
    WHERE to_address = lower('0x881D40237659C251811CEC9c364ef91dC08D300C')
    ) and datee >= '2022-05-01' and platform = 'sushiswap' group by 1 order by 1
    )
    select date, metamask_volume, other_platforms_volume from metamask
    left join other_platforms ON
    metamask.date = other_platforms.datee
    group by date, metamask_volume, other_platforms_volume order by date

    Run a query to Download Data