re_annAverage Sale Price for Each Project
Updated 2024-04-28
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
›
⌄
SELECT
PROJECT_NAME, -- Selects the PROJECT_NAME column
AVG(TOTAL_PRICE_USD) AS AverageSalePriceUSD -- Calculates the average sale price in USD and aliases it as AverageSalePriceUSD
FROM
aptos.nft.ez_nft_sales -- Specifies the ez_nft_sales table
WHERE
PROJECT_NAME IN ( -- Filters the results to only include project names that are present in the subquery
SELECT
PROJECT_NAME -- Selects the PROJECT_NAME column in the subquery
FROM
aptos.nft.ez_nft_mints -- Specifies the ez_nft_mints table for the subquery
)
GROUP BY
PROJECT_NAME -- Groups the results by project name
LIMIT
10; -- Limits the output to the first 10 rows
QueryRunArchived: QueryRun has been archived