QUERY PLAN
Aggregate (cost=2.89..2.90 rows=1 width=8)
-> Append (cost=0.00..2.89 rows=1 width=0)
-> Subquery Scan on "*SELECT* 2" (cost=0.00..2.89 rows=1 width=0)
-> Seq Scan on tbl_erp_other_collect_tickets (cost=0.00..2.88 rows=1 width=238)
Filter: ((bank_settle_at IS NOT NULL) AND (status = 2) AND (supplier_id = 431) AND ((amount - all_settle_amount) > '0'::numeric))