RayyykTop Shot vs All Day 3
Updated 2022-09-25Copy 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
›
⌄
with all_day as (select min(block_timestamp) as first_purchase,
buyer
from flow.core.fact_nft_sales
where nft_collection = 'A.e4cf4bdc1751c65d.AllDay'
and tx_succeeded = 'TRUE'
group by 2),
top_shot as (select min(block_timestamp) as first_purchase,
buyer
from flow.core.fact_nft_sales
where nft_collection = 'A.0b2a3299cc857e29.TopShot'
and tx_succeeded = 'TRUE'
group by 2)
select date_trunc('day', first_purchase) as day,
'NFL All Day' as projects,
count(distinct(buyer)) as buyer_count,
case
when day >= '2022-09-09 00:00:00.000' then 'Start of Regular Season'
else 'Before Regular Season'
end as season
from all_day
group by 1
Run a query to Download Data