YEAR | ADDRESSES | |
---|---|---|
1 | 2020 | 111284 |
2 | 2020 and 2021 | 6221 |
3 | 2020 and 2022 | 2925 |
4 | 2020 and 2023 | 2599 |
5 | 2020, 2021 and 2022 | 2415 |
6 | 2020, 2021 and 2023 | 2334 |
7 | 2020, 2021, 2022 and 2023 | 1643 |
8 | 2020, 2022 and 2023 | 1727 |
9 | 2021 | 7109271 |
10 | 2021 and 2022 | 1806486 |
11 | 2021 and 2023 | 779028 |
12 | 2021, 2022 and 2023 | 593097 |
13 | 2022 | 22139259 |
14 | 2022 and 2023 | 5071850 |
15 | 2023 | 32783892 |
Flipside CommunityPolygon Returning Addresses
Updated 2025-02-04
999
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 distinct_interaction_years AS(
select from_address, substr(date_trunc('year',block_timestamp),0,4) as year, count(distinct from_address) as "yes" from polygon.core.fact_transactions
group by 1,2
),
pivoted_table as
(
SELECT *
FROM (
SELECT from_address, year, COUNT("yes") as yes_count
FROM distinct_interaction_years
GROUP BY from_address, year
)
PIVOT (
MAX(yes_count) FOR year IN (2020,2021,2022, 2023)
)
)
select '2020' as year, count(from_address) as addresses from pivoted_table
where 1=1
and "2020"='1'
union
select '2021' as year, count(from_address) as addresses from pivoted_table
where 1=1
and "2021"='1'
union
select '2022' as year, count(from_address) as addresses from pivoted_table
where 1=1
and "2022"='1'
union
select '2023' as year, count(from_address) as addresses from pivoted_table
Last run: 3 months ago
15
369B
317s