QUERY PLAN
Append (cost=0.00..26.34 rows=2 width=198)
-> Seq Scan on tbl_erp_other_payment_tickets (cost=0.00..12.98 rows=1 width=198)
Filter: ((contact_id = 3649) AND ((amount - settle_amount) > '0'::numeric))
-> Seq Scan on tbl_erp_cost_tickets (cost=0.00..13.33 rows=1 width=198)
Filter: ((contact_id = 3649) AND ((amount - settle_amount) > '0'::numeric))