QUERY PLAN
Aggregate (cost=4.88..4.89 rows=1 width=32)
-> Hash Join (cost=1.15..4.87 rows=1 width=32)
Hash Cond: (t.id = r.erp_other_payment_ticket_id)
-> Seq Scan on tbl_erp_other_payment_tickets t (cost=0.00..3.55 rows=43 width=4)
Filter: (status = ANY ('{2,5}'::integer[]))
-> Hash (cost=1.14..1.14 rows=1 width=36)
-> Seq Scan on tbl_erp_other_payment_ticket_bank_ins r (cost=0.00..1.14 rows=1 width=36)
Filter: (erp_bank_id = 1)