Updated 2023-06-02
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
›
⌄
-- forked from 02 @ https://flipsidecrypto.xyz/edit/queries/a436d0ec-e2d1-4bea-8dd1-23b04e5d9e1e
-- forked from 01 @ https://flipsidecrypto.xyz/edit/queries/cca585a7-63d6-4527-b0dd-5eb520b29d07
with
flow_price AS
(
SELECT
date_trunc( 'day' , a.recorded_hour ) AS day
, avg( a.close ) AS price
FROM
flow.core.fact_hourly_prices a
WHERE
a.token = 'Flow'
GROUP BY
1
ORDER BY
1 DESC
)
,
min AS
(
SELECT
min( a.block_timestamp ) AS min_date
, a.buyer AS new_users
FROM
flow.core.ez_nft_sales a
JOIN
flow.core.dim_contract_labels c
ON a.nft_collection = c.event_contract
GROUP BY
2
ORDER BY
1
Run a query to Download Data