QUERY PLAN
Aggregate (cost=2.55..2.56 rows=1 width=32)
-> Hash Join (cost=1.18..2.55 rows=1 width=32)
Hash Cond: (t.id = r.erp_other_collect_ticket_id)
-> Seq Scan on tbl_erp_other_collect_tickets t (cost=0.00..1.29 rows=20 width=4)
Filter: (status = ANY ('{2,5}'::integer[]))
-> Hash (cost=1.16..1.16 rows=1 width=36)
-> Seq Scan on tbl_erp_other_collect_ticket_bank_outs r (cost=0.00..1.16 rows=1 width=36)
Filter: (erp_bank_id = 1)