LittlerDataFlow arriving dates
    Updated 2023-01-05
    with joytx as (
    select
    distinct tx_id as tx_id
    from flow.core.fact_events
    where event_type = 'AccountCreated'
    and event_contract = 'A.ecfad18ba9582d4f.JoyrideAccounts'
    ),
    flow as (
    select
    date_trunc('day',block_timestamp) as date
    ,count(distinct tx_id) as Flow
    from flow.core.fact_events
    where event_type = 'AccountCreated'
    and tx_id not in (select tx_id from joytx)
    group by date
    ),
    Joyride as (
    select
    date_trunc('day',block_timestamp) as dated
    ,count(distinct tx_id) as Joyride
    from flow.core.fact_events
    where event_type = 'AccountCreated'
    and event_contract = 'A.ecfad18ba9582d4f.JoyrideAccounts'
    group by dated, event_contract
    ),

    almost as(
    select
    date
    ,Joyride
    ,Flow
    ,sum(coalesce(joyride, 0 ) + flow) as Total_New_users
    from Flow
    left join Joyride on joyride.dated = flow.date
    Run a query to Download Data