Azinnews 3
Updated 2023-01-13Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
›
⌄
select
sum(AMOUNT) as volume, avg(AMOUNT) as aver,
date_trunc('week',BLOCK_TIMESTAMP) as date,
CASE
when date> CURRENT_DATE-21 then 'Holidays'
else 'others' end as type
from
flow.core.ez_token_transfers a
left join flow.core.dim_contract_labels b
on a.TOKEN_CONTRACT=b.EVENT_CONTRACT
GROUP by date, type
Run a query to Download Data