QUERY PLAN
Aggregate (cost=2.78..2.79 rows=1 width=32)
-> Hash Join (cost=1.35..2.77 rows=4 width=6)
Hash Cond: (t.id = r.erp_bank_transfer_ticket_id)
-> Seq Scan on tbl_erp_bank_transfer_tickets t (cost=0.00..1.30 rows=22 width=4)
Filter: (status = ANY ('{2,5}'::integer[]))
-> Hash (cost=1.30..1.30 rows=4 width=10)
-> Seq Scan on tbl_erp_bank_transfer_ticket_bank_ins r (cost=0.00..1.30 rows=4 width=10)
Filter: (erp_bank_id = 2)