quocbao0207Getting Started
Updated 2024-11-14Copy Reference Fork
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
›
⌄
-- Get started with Flipside by running your first query:
-- the SQL statement below will get you a list of NFT
-- platforms on Ethereum, ranked by how many sales
-- they've had in the past month.
-- Be sure to see our documentation for more guidance,
-- including a full walkthrough of the app:
-- https://docs.flipsidecrypto.xyz/our-app/getting-started
-- select
-- platform_name,
-- count(*) as sales_count
-- from ethereum.nft.ez_nft_sales
-- where block_timestamp > current_date - interval '30 days'
-- group by platform_name
-- order by sales_count desc
SELECT
DATE_TRUNC('day', hour) AS day,
AVG(price) AS avg_yearly_price
FROM
bitcoin.price.ez_prices_hourly
WHERE
hour >= '2024-09-01' AND hour < '2024-11-13'
GROUP BY
DATE_TRUNC('day', hour)
ORDER BY
day;
QueryRunArchived: QueryRun has been archived