Drsimoneth vs sol daily nft sales
Updated 2023-01-08
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
›
⌄
with eth as (
select
date_trunc('day',BLOCK_TIMESTAMP) AS day,
sum(Price) AS total_eth,
sum(total_eth) over (order by day) AS Cum_eth
from ethereum.core.ez_nft_sales
where Price is not NULL
and day >= '2022-08-01'
group by 1
--order by 1
) ,
sol as (
select
date_trunc('day',BLOCK_TIMESTAMP) AS day,
sum(SALES_AMOUNT)AS total_sol,
sum(total_sol) over (order by day) AS Cum_sol
from solana.core.fact_nft_sales
where SALES_AMOUNT is not NULL
and day >= '2022-08-01'
group by 1
--order by 1
)
select
s.day ,
e.total_eth --/ 1e18 as total_eth
, e.Cum_eth ,
s.total_sol , s.Cum_sol
from eth e
full outer join sol s
on e.day = s.day
order by 1 DESC
Run a query to Download Data