Query editor
SELECT DATE_FORMAT(t1.block_time, '%Y-%m-%d') date, t1."from" "销售者",count(t1."from") "挂单总数",t2.xgl "取消/改价",(count(t1."from") - t2.xgl) "出售的订单" FROM arbitrum.transactions t1 left join ( SELECT DATE_FORMAT(tt.block_time, '%Y-%m-%d') datexg,"from" "xgz",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 "from",DATE_FORMAT(tt.block_time, '%Y-%m-%d') )t2 on t1."from" = t2."xgz" and 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 t1."from",t2.xgl,DATE_FORMAT(t1.block_time, '%Y-%m-%d') order by DATE_FORMAT(t1.block_time, '%Y-%m-%d') desc ,count(t1."from") desc