rajsUntitled Query
Updated 2023-01-14Copy 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
›
⌄
SELECT
'ethereum' as blockchain,
date_trunc('day', block_timestamp) as date,
count(*) as no_of_txs,
sum(eth_value) as eth_value
from ethereum.core.fact_transactions
where status = 'SUCCESS'
group by 1,2
-- order by 1 desc
union all
SELECT
'optimism' as blockchain,
date_trunc('day', block_timestamp) as date,
count(*) as no_of_txs,
sum(eth_value) as eth_value
from optimism.core.fact_transactions
where status = 'SUCCESS'
group by 1,2
union all
SELECT
'abritrum' as blockchain,
date_trunc('day', block_timestamp) as date,
count(*) as no_of_txs,
sum(eth_value) as eth_value
from arbitrum.core.fact_transactions
where status = 'SUCCESS'
group by 1,2
order by 2 desc
Run a query to Download Data