FatemeTheLady05 NEAR: PROJECT TYPES - TPU
Updated 2023-05-19
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
›
⌄
select
project_type,
avg(Active_days) "Average Active Days"
from
(
select
tx_signer,
label_type as project_type,
count(distinct date_trunc('day', block_timestamp)) as Active_days
from (
select
t.block_timestamp,
project_name,
label_type,
tx_signer
from
near.core.fact_transactions t
left outer join near.core.dim_address_labels l on t.TX_RECEIVER = l.address
where
block_timestamp<current_date
)
group by 1,2
)
where project_type is not null
group by 1
order by 2 desc
LIMIT 8
Run a query to Download Data