Moetrans 1
Updated 2023-12-08
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
29
30
31
32
33
34
35
36
›
⌄
WITH
daus as (
SELECT distinct
sender as users,
trunc(block_timestamp, 'week') as weeks,
count(distinct trunc(block_timestamp, 'day')) as active_days
from
aptos.core.fact_transactions
group by
1,
2
having
active_days >= 4),
pc as (
select
HOUR::date as days ,
SYMBOL ,
TOKEN_ADDRESS ,
avg(PRICE) as pricee
from
aptos.price.ez_hourly_token_prices
group by 1,2,3
)
,
middle as (
select
t.* , symbol , DECIMALS
from
aptos.core.fact_transfers t join aptos.core.dim_tokens
using (TOKEN_ADDRESS)
)
select
Run a query to Download Data