Query editor
/* Migration success :)There are some cases such as unnest/sequence and array/json functions the migrator won't take care of for you(but we have examples of in the docs linked above!)If you're still running into issues, check out the doc examples https://dune.com/docs/reference/dune-v2/query-engine/or reach out to us in the Dune discord in the #dune-sql channel.*/SELECTproject,DATE_TRUNC('day', block_time),SUM(CAST(amount_usd AS DOUBLE)) AS usd_volumeFROMdex."trades" AS tWHEREblock_time > DATE_TRUNC('day', NOW()) - INTERVAL '1219' dayAND block_time < DATE_TRUNC('day', NOW())GROUP BY1,2