QUERY PLAN
Aggregate (cost=2.57..2.58 rows=1 width=32)
-> Hash Join (cost=1.02..2.57 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..1.41 rows=32 width=4)
Filter: (status = ANY ('{2,5}'::integer[]))
-> Hash (cost=1.01..1.01 rows=1 width=36)
-> Seq Scan on tbl_erp_other_payment_ticket_bank_ins r (cost=0.00..1.01 rows=1 width=36)
Filter: (erp_bank_id = 2)