re_annAnalysis of Platform Fees
Updated 2024-04-28
99
1
2
3
4
5
6
7
8
9
10
11
12
13
›
⌄
SELECT
S.PLATFORM_NAME, -- Selects the PLATFORM_NAME column from the ez_nft_sales table
SUM(S.PLATFORM_FEE_USD) AS TotalPlatformFeesUSD -- Calculates the total platform fees in USD and aliases it as TotalPlatformFeesUSD
FROM
aptos.nft.ez_nft_sales S -- Specifies the ez_nft_sales table as S
JOIN
aptos.nft.ez_nft_mints M -- Specifies the ez_nft_mints table as M
ON
S.NFT_ADDRESS = M.NFT_ADDRESS -- Joins rows where the NFT_ADDRESS column in ez_nft_sales matches the NFT_ADDRESS column in ez_nft_mints
AND S.TOKENID = M.TOKENID -- and where the TOKENID column in ez_nft_sales matches the TOKENID column in ez_nft_mints
GROUP BY
S.PLATFORM_NAME; -- Groups the results by the PLATFORM_NAME column in ez_nft_sales
QueryRunArchived: QueryRun has been archived