MLDZMNflwnft1
Updated 2022-09-24Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
›
⌄
SELECT
CONTRACT_NAME,
count(distinct BUYER) as purchasers,
COUNT (tx_id) as total_sales,
sum(price) as volume,
avg(price) as average_sale_price,
total_sales/purchasers as average_buyer,
volume/total_sales as average_sale
FROM flow.core.fact_nft_sales s left join flow.core.dim_contract_labels b on s.NFT_COLLECTION=b.EVENT_CONTRACT
where CURRENCY='A.ead892083b3e2c6c.DapperUtilityCoin' and TX_SUCCEEDED='TRUE'
--and BLOCK_TIMESTAMP>='2022-05-01'
group BY 1
order by 3 desc
limit 10
Run a query to Download Data