QUERY PLAN
Hash Join (cost=1.15..2.85 rows=1 width=14)
Hash Cond: (t.id = r.erp_other_income_ticket_id)
-> Seq Scan on tbl_erp_other_income_tickets t (cost=0.00..1.55 rows=38 width=12)
Filter: (status = ANY ('{2,5,1}'::integer[]))
-> Hash (cost=1.14..1.14 rows=1 width=10)
-> Seq Scan on tbl_erp_other_income_ticket_purchase_contract_settles r (cost=0.00..1.14 rows=1 width=10)
Filter: (purchase_contract_id = 4501)