rahoUntitled Query
    Updated 2022-12-09
    with deposits as(
    select
    *
    from polygon.core.fact_traces
    where to_address = lower('0xAA59736b80cf77d1E7D56B7bbA5A8050805F5064')
    and from_address = lower('0x36cc7b13029b5dee4034745fb4f24034f3f2ffc6')
    ),

    withdrawals as(
    select
    *
    from polygon.core.fact_traces
    where from_address = lower('0xAA59736b80cf77d1E7D56B7bbA5A8050805F5064')
    and to_address = lower('0x36cc7b13029b5dee4034745fb4f24034f3f2ffc6')
    ),

    net_bal as (
    select
    d.*,
    w.*
    from deposits d
    join withdrawals w
    on d.from_address = w.to_address
    )

    select * from net_bal
    Run a query to Download Data