Query editor
WITH eth_volume AS (SELECTblock_date,SUM(CAST(amount_usd AS DOUBLE)) AS usd_volumeFROMdex."trades" AS tWHEREblock_date >= CURRENT_DATE - INTERVAL '30' DAYAND blockchain = 'ethereum'GROUP BYblock_date),solana_volume AS (SELECTblock_date,SUM(amount_usd) AS usd_volumeFROM dex_solana.trades spWHEREblock_time >= CURRENT_DATE - INTERVAL '30' DAYAND blockchain = 'solana'GROUP BY block_date)SELECTblock_date AS month,'solana' AS chain,usd_volumeFROM solana_volumeUNION ALLSELECTblock_date AS month,'ethereum' AS chain,usd_volumeFROM eth_volume