Azinstation 14
Updated 2023-02-07Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
›
⌄
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