mattkstewNYR NFTs 5
    Updated 2023-01-14
    with tab1 as (
    select
    token_id as t1,
    avg(sales_amount/power(10,6)) as Sales_Price
    from terra.core.fact_nft_sales
    group by 1
    )

    , tab2 as (
    select
    token_id as t2,
    avg(mint_price/power(10,6)) as Mint_Price
    from terra.core.fact_nft_mints
    group by 1
    )

    select
    --mint_price,
    --sales_price,
    avg((abs(sales_price-mint_price))/mint_price) * 100
    from tab1 left outer join tab2 on t1 = t2

    Run a query to Download Data