PredictionTest users and new users
Updated 2023-06-07
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 top_apps_today as (
SELECT
project_name as app_today,
count(DISTINCT from_address) as users_today
FROM avalanche.core.fact_transactions as a
LEFT outer JOIN avalanche.core.dim_labels as b
on a.to_address = b.address
LEFT outer JOIN
(
SELECT
date_trunc('day', hour) as day1,
avg(price) as price1
FROM ethereum.core.fact_hourly_token_prices
WHERE symbol LIKE 'WAVAX'
GROUP BY 1
)
on date_trunc('day', block_timestamp) = day1
WHERE block_timestamp > current_date - 1
AND status LIKE 'SUCCESS'
AND NOT app_today IS NULL
GROUP BY app_today
--ORDER BY 3 DESC
),
first_time_app_interaction_user as (
SELECT
from_address,
project_name as app,
MIN(block_timestamp) as first_time
FROM avalanche.core.fact_transactions as a
LEFT outer JOIN avalanche.core.dim_labels as b
on a.to_address = b.address
WHERE NOT app IS NULL
AND status LIKE 'SUCCESS'
AND app in (SELECT app_today FROM top_apps_today)
Run a query to Download Data