with arb as (
select
block_timestamp::date as date,
count(distinct(tx_hash)) as no_tx
from arbitrum.core.fact_transactions
where block_timestamp > '2022-06-20 00:00'
and block_timestamp < '2022-06-27 01:00'
group by date
),
bsc as (
select
block_timestamp::date as date,
count(distinct(tx_hash)) as no_tx
from bsc.core.fact_transactions
where block_timestamp > '2022-06-20 00:00'
and block_timestamp < '2022-06-27 01:00'
group by date
)
select
arb.date as date,
arb.no_tx as arbitrum,
bsc.no_tx as bsc
from arb
inner join bsc on arb.date = bsc.date