cheeyoung-kekUSDC sol 3
    Updated 2022-10-10
    with
    outflow as(
    select
    date_trunc('week', block_timestamp) as date,
    count(tx_id) as transactions,
    count (tx_from) as sender
    from solana.core.fact_transfers a
    join solana.core.dim_labels b
    on a.TX_TO = b.address
    where MINT ='EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'
    and date >= '2022-01-01'
    group by 1
    ),
    inflow as(
    select
    date_trunc('week', block_timestamp) as date,
    count(tx_id) as transactions,
    count (tx_from) as sender
    from solana.core.fact_transfers a
    join solana.core.dim_labels b
    on a.TX_FROM = b.address
    where MINT ='EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'
    and date >= '2022-01-01'
    group by 1
    )


    select *, 'inflow' as flow
    from inflow
    union all
    select * , 'outflow' as flow from outflow
    Run a query to Download Data