Ant-DAO-MentDate Manipulation
Updated 2023-11-01
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
›
⌄
-- I'd like to delete only 2 days from a query where I take a full week.
SELECT
date_trunc('day', hour) as day_date,
avg(price)
FROM
ethereum.core.fact_hourly_token_prices
WHERE 1=1
AND SYMBOL = 'SNX'
AND day_date >= '2021-10-01'
AND day_date <= '2021-10-07'
-- I wouldn't wanted to get 2021-10-04 and 2021-10-05 (Just an example)
AND day_date NOT IN ('2021-10-04', '2021-10-05')
GROUP BY 1
ORDER BY 1
Run a query to Download Data