adriaparcerisassweat on near 4
    Updated 2023-04-13
    WITH
    t1 as (
    SELECT
    trunc(block_timestamp,'day') as date,
    sum(deposit)/pow(10,24) as near_transferred_out,
    count(distinct tx_hash) as transfers_out
    FROM near.core.fact_transfers
    WHERE status = TRUE
    and tx_signer <> 'sweat_welcome.near'
    GROUP BY 1
    ),
    t2 as (
    SELECT
    trunc(block_timestamp,'day') as date,
    sum(deposit)/pow(10,24) as near_transferred_out,
    count(distinct tx_hash) as transfers_out
    FROM near.core.fact_transfers
    WHERE tx_signer = 'sweat_welcome.near'
    AND status = TRUE
    GROUP BY 1
    )
    SELECT
    'Others' as platform,* from t1 where date>='2022-09-01'
    union select 'Sweat' as platform,* from t2 where date>='2022-09-01'
    order by 1 asc
    Run a query to Download Data