QUERY PLAN
Append (cost=0.00..2.96 rows=4 width=196)
-> Subquery Scan on "*SELECT* 1" (cost=0.00..0.00 rows=1 width=438)
-> Result (cost=0.00..0.00 rows=0 width=436)
One-Time Filter: false
-> Result (cost=0.00..0.00 rows=0 width=438)
One-Time Filter: false
-> Result (cost=0.00..0.00 rows=0 width=246)
One-Time Filter: false
-> Seq Scan on tbl_erp_other_collect_tickets (cost=0.00..2.95 rows=1 width=170)
Filter: ((bank_settle_at IS NOT NULL) AND (status = 2) AND (contact_id = 6190) AND ((amount - all_settle_amount) > '0'::numeric))