jackguysol_nft_test_1 - 2
Updated 2023-03-14
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
with tab0 as (
SELECT
date_trunc('day', RECORDED_HOUR) as day1,
median(CLOSE) as solana_price
FROM solana.core.fact_token_prices_hourly
WHERE symbol LIKE 'SOL'
GROUP BY 1
), tab as (
SELECT
a.mint as mint1,
token_name
FROM solana.core.fact_nft_sales as a
LEFT outer JOIN solana.core.dim_nft_metadata as b
ON a.mint = b.mint
WHERE block_timestamp > CURRENT_DATE - 180
AND token_name IN (
'DeGods',
'ABC',
'Solana Monkey Business',
'Okay Bears',
'Degen Apes',
'Blocksmith Labs',
'Famous Fox Federation',
'Cets On Creck',
'Jelly Rascals',
'Degen Fat Cats'
)
GROUP BY 1,2
)
SELECT
SPLIT_PART(block_timestamp, ' ', 1) as day,
token_name as column2,
count(DISTINCT tx_id) as sales,
count(DISTINCT PURCHASER) as nft_buyers,
sum(SALES_AMOUNT * solana_price) as sales_volume,
Run a query to Download Data