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 below!)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.*//* select sum(cast(cost as double) ) from spaceid."BNBRegistrarControllerV3_evt_NameRegistered" */SELECT*FROM(SELECTname,owner AS minter,evt_block_time AS register_time,expires AS expire_time,cast(cost as double) / 1e18 AS register_BNB,evt_tx_hash AS tx_hashFROMspaceid_bnb.BNBRegistrarControllerV3_evt_NameRegisteredUNION ALLSELECTname,owner AS minter,evt_block_time AS register_time,expires AS expire_time,cast(cost as double) / 1e18 AS register_BNB,evt_tx_hash AS tx_hashFROMspaceid_bnb.BNBRegistrarControllerV4_evt_NameRegisteredUNION ALLSELECTname,owner AS minter,evt_block_time AS register_time,expires AS expire_time,cast(cost as double) / 1e18 AS register_BNB,evt_tx_hash AS tx_hashFROMspaceid_bnb.BNBRegistrarControllerV5_evt_NameRegisteredUNION ALLSELECTname,owner AS minter,evt_block_time AS register_time,expires AS expire_time,cast(cost as double) / 1e18 AS register_BNB,evt_tx_hash AS tx_hashFROMspaceid_bnb.BNBRegistrarControllerV6_evt_NameRegisteredUNION ALLSELECTname,owner AS minter,evt_block_time AS register_time,expires AS expire_time,cast(cost as double) / 1e18 AS register_BNB,evt_tx_hash AS tx_hash