mucryptoUntitled Query
Updated 2023-02-09
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
›
⌄
with uniswap as (SELECT
DATE(hour) as "Date",
AVG(price) as "Average UNI price, USD"
FROM ethereum.core.fact_hourly_token_prices
WHERE "Date" BETWEEN '2022-01-01' AND '2022-12-31'
AND symbol = 'UNI'
GROUP BY "Date"),
sushiswap as (select
date(hour) as "Date",
avg(price) as "Average SUSHI price, USD"
from ethereum.core.fact_hourly_token_prices
where "Date" between '2022-01-01' and '2022-12-31'
and symbol = 'SUSHI'
group by "Date")
select uniswap."Date", sushiswap."Date", uniswap."Average UNI price, USD", sushiswap."Average SUSHI price, USD"
from uniswap
join sushiswap
on uniswap."Date"=sushiswap."Date"
order by uniswap."Average UNI price, USD"
Run a query to Download Data