Azinstation 14
    Updated 2023-02-07
    with t1 as
    (select TX_SENDER, min(BLOCK_TIMESTAMP) as ddd

    from
    terra.core.fact_transactions
    group by 1
    )

    select
    count(*) as number , case when ddd>'2023-01-14' then 'After lunch' else 'before lunch' end as type,
    date_trunc('day',ddd) as date

    from t1 a left join terra.core.dim_address_labels b
    on a.TX_SENDER=b.ADDRESS
    group by date,type
    Run a query to Download Data