quocbao0207Getting Started
    Updated 2024-11-14

    -- 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