Query editor
selectcoalesce(a.dt,b.dt) dt,coalesce(a.entity,b.entity) entity,a.total_tx_amt total_deposit_usd,b.total_tx_amt total_withdraw_usd,a.total_tx_cnt total_deposit_cnt,b.total_tx_cnt total_withdraw_cnt,a.tx_amt_eth deposit_eth_amt,a.tx_usd_eth deposit_eth_usd,b.tx_amt_eth withdraw_eth_amt,b.tx_usd_eth withdraw_eth_usd,a.tx_amt_usd deposit_usd_amt,b.tx_amt_usd withdraw_usd_amtfrom(selectdate(block_time) dt,entity,sum(tx_usd_amt) total_tx_amt,count(distinct tx_hash) total_tx_cnt,round(sum(if(symbol='ETH',tx_amt,0)),2) tx_amt_eth,sum(if(symbol='ETH',tx_usd_amt,0)) tx_usd_eth,count(distinct if(symbol='ETH', tx_hash, null)) tx_cnt_eth,round(sum(if(symbol in ('USDT','USDC'),tx_amt,0)),2) tx_amt_usd,count(distinct if(symbol in ('USDT','USDC'), tx_hash, null)) tx_cnt_usdfromquery_4060776group by1,2) afull outer join(selectdate(block_time) dt,entity,sum(tx_usd_amt) total_tx_amt,count(distinct tx_hash) total_tx_cnt,round(sum(if(symbol='ETH',tx_amt,0)),2) tx_amt_eth,sum(if(symbol='ETH',tx_usd_amt,0)) tx_usd_eth,count(distinct if(symbol='ETH', tx_hash, null)) tx_cnt_eth,round(sum(if(symbol in ('USDT','USDC'),tx_amt,0)),2) tx_amt_usd,count(distinct if(symbol in ('USDT','USDC'), tx_hash, null)) tx_cnt_usdfromquery_4060783whereentity is not nullgroup by1,2) bona.dt = b.dtand a.entity = b.entityorder by1 desc,2