Query editor
withtrades AS (SELECTd.block_time AS time,d.tx_hash AS tx,d.project AS project,d.version AS version,d.blockchain AS blockchain,a.project AS origin,d.project_contract_address AS pool,d.token_bought_symbol AS bought,d.token_bought_address AS bought_address,d.token_sold_symbol AS sold,d.token_sold_address AS sold_address,d.token_pair AS pair,d.token_bought_amount AS bought_amount,d.token_sold_amount AS sold_amount,d.amount_usd AS usd_amountFROM dex.trades dLEFT JOIN dex_aggregator.trades a ON d.tx_hash = a.tx_hashWHERE d.block_date >= TIMESTAMP '2023-01-01 00:00'AND d.block_date < TIMESTAMP '2024-01-01 00:00'AND d.blockchain IN ('ethereum'))SELECT *FROM trades