HadisehUsers on Flow
    Updated 2022-06-22
    with unretention_flow as (
    select min(block_timestamp::date) as day , payer
    from flow.core.fact_transactions
    where block_timestamp::date >= '2022-05-01' and block_timestamp::date < '2022-05-30'
    group by 2),
    retention_flow as (
    select min(block_timestamp::date) as day , payer
    from flow.core.fact_transactions
    where
    payer in ( select payer from unretention_flow)
    and block_timestamp::date >= '2022-06-01'
    and block_timestamp::date <= '2022-06-30'
    group by 2)

    select 'Unretention_user' as user_type , count(DISTINCT(payer)) as unique_user from unretention_flow
    group by 1
    UNION
    select 'Retention_user' as user_type, count(DISTINCT(payer)) as unique_user from retention_flow
    group by 1
    Run a query to Download Data