Query editor
select * from ( SELECT DATE_FORMAT(t1.block_time, '%Y-%m-%d')date, count(1) "挂单总数",t2.xgl "取消/改价",(count(1) - t2.xgl) "出售的订单" FROM arbitrum.transactions t1 left join ( SELECT DATE_FORMAT(tt.block_time, '%Y-%m-%d') datexg,count(1) "xgl" FROM arbitrum.transactions tt WHERE to = 0xf5131c59194f11d9248a8e14c32d5b6f234542f6 and (SUBSTRING(data FROM 1 FOR 4) = 0x96b5a755 or SUBSTRING(data FROM 1 FOR 4) = 0xb3de019c) and success = true group by DATE_FORMAT(tt.block_time, '%Y-%m-%d') )t2 on DATE_FORMAT(t1.block_time, '%Y-%m-%d')=t2.datexg WHERE to = 0x1e3e1ed17a8df57c215b45f00c2ec4717b33a93d and SUBSTRING(data FROM 1 FOR 4) = 0xb88d4fde and success = true group by t2.xgl,DATE_FORMAT(t1.block_time, '%Y-%m-%d') )s1 left join ( SELECT DATE_FORMAT(block_time, '%Y-%m-%d') date,count(1) "购买量" FROM arbitrum.transactions WHERE to = 0xf5131c59194f11d9248a8e14c32d5b6f234542f6 and (SUBSTRING(data FROM 1 FOR 4) = 0x72b60c30 or SUBSTRING(data FROM 1 FOR 4) = 0xe07fd88c) and success = true group by DATE_FORMAT(block_time, '%Y-%m-%d') )s2 on s1.date=s2.date order by s1.date desc