Query editor
select date_trunc('day', e.block_time) as day,round(sum((cast(e.gas_used as decimal) * cast(e.gas_price as decimal))/1e18), 2) as gas_paidfrom dex.trades d left join ethereum.transactions e on d.tx_hash = e.hashWHERE DATE_TRUNC('day', e.block_time) >= (NOW() - INTERVAL '8' DAY)group by date_trunc('day', e.block_time)order by date_trunc('day', e.block_time) desc