hessUsers Breakdown AURORA Vs. Near copy
Updated 2023-07-30
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
›
⌄
with near as (select signer_id as user, count(DISTINCT(trunc(block_timestamp,'month'))) as month
from near.core.fact_actions_events_function_call a join near.core.dim_address_labels b on a.receiver_id = b.address
where block_timestamp::date >= '{{Start_Date}}' and block_timestamp::date <= '{{End_Date}}'
group by 1)
,
aurora as (select from_address as user, count(DISTINCT(trunc(block_timestamp,'month'))) as month
from aurora.core.fact_transactions
where block_timestamp::date >= '{{Start_Date}}' and block_timestamp::date <= '{{End_Date}}'
group by 1)
,
max as (select count(DISTINCT(trunc(block_timestamp,'month'))) as month
from aurora.core.fact_transactions
where block_timestamp::date >= '{{Start_Date}}' and block_timestamp::date <= '{{End_Date}}')
,
near_active as (select count(DISTINCT(user)) as near_user
from near
where month in (select month from max))
,
aurora_active as (select count(DISTINCT(user)) as aurora_user
from aurora
where month in (select month from max))
select near_user, aurora_user
from aurora_active , near_active
Run a query to Download Data