QUERY PLAN
Aggregate (cost=2.83..2.84 rows=1 width=32)
-> Hash Join (cost=1.38..2.82 rows=6 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=6 width=10)
-> Seq Scan on tbl_erp_bank_transfer_ticket_bank_ins r (cost=0.00..1.30 rows=6 width=10)
Filter: (erp_bank_id = 1)