mattkstewNFTs in 2022 3.5
Updated 2023-01-05Copy Reference Fork
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 tab1 as (
select
project_name,
sum(price_usd)
from ethereum.core.ez_nft_sales
where price_usd is not null
and project_name is not null
and price_usd < 500000000
group by 1
order by 2 desc
limit 150 )
, tab2 as (
select
project_name,
sum(price_usd) as old_price
from ethereum.core.ez_nft_sales
where project_name in (select project_name from tab1)
and block_timestamp between '2022-01-01' and '2022-02-01'
group by 1
)
, tab3 as (
select
project_name,
sum(price_usd) as current_price
from ethereum.core.ez_nft_sales
where project_name in (select project_name from tab1)
and block_timestamp between '2022-12-01' and '2023-01-01'
group by 1 )
Run a query to Download Data