SalehUntitled Query
Updated 2022-10-02
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
›
⌄
with post as (
select
'Post' as status
,block_timestamp::date as date
,count(tx_hash) as tx_count
,count(DISTINCT origin_from_address) as wallets
,sum(amount_in_usd) as swap_volume
from ethereum.core.ez_dex_swaps
where block_timestamp::date >='2022-09-15'
group by 1,2
order by 1
)
,pre as (
select
'Pre' as status
,block_timestamp::date as date
,count(tx_hash) as tx_count
,count(DISTINCT origin_from_address) as wallets
,sum(amount_in_usd) as swap_volume
from ethereum.core.ez_dex_swaps
where block_timestamp::date BETWEEN '2022-08-29' and '2022-09-14'
group by 1,2
order by 1
)
select * from pre
union all
select * from post
Run a query to Download Data