Afonso_Diaz2023-08-21 02:48 AM
    Updated 2023-08-20
    with t as (
    select
    tx_hash,
    block_timestamp,
    origin_from_address as user,
    'Ethereum' as chain,
    amount_in_usd as amount_usd
    from ethereum.core.ez_dex_swaps
    where platform ilike 'uniswap%'

    union all

    select
    tx_hash,
    block_timestamp,
    origin_from_address as user,
    'Avalanche' as chain,
    amount_in_usd as amount_usd
    from avalanche.core.ez_dex_swaps
    where platform ilike 'uniswap%'

    union all

    select
    tx_hash,
    block_timestamp,
    origin_from_address as user,
    'Polygon' as chain,
    amount_in_usd as amount_usd
    from polygon.core.ez_dex_swaps
    where platform ilike 'uniswap%'

    union all

    select
    tx_hash,
    Run a query to Download Data