sakineh5021-nIQRzBSushibar Servings 1
    Updated 2022-04-19
    with inflow_xsushi as(
    SELECT block_timestamp::date as flow_date
    , sum(amount) as inflow
    from ethereum.udm_events U
    where block_timestamp::date > '2022-01-01'
    and to_address ='0x8798249c2e607446efb7ad49ec89dd1865ff4272'
    group by 1
    )
    ,
    outflow_xsushi as(
    SELECT block_timestamp::date as flow_date
    , sum(amount) as OUtflo
    from ethereum.udm_events U
    where block_timestamp::date > '2022-01-01'
    and from_address ='0x8798249c2e607446efb7ad49ec89dd1865ff4272'
    group by 1
    )

    SELECT I.flow_date , inflow, -outflo as outflow , inflow-outflo as net_flow
    from inflow_xsushi I , outflow_xsushi O
    where I.flow_date = O.flow_date

    Run a query to Download Data