QUERY PLAN
Aggregate (cost=2.73..2.74 rows=1 width=32)
-> Hash Join (cost=1.35..2.69 rows=16 width=8)
Hash Cond: (r.erp_wage_ticket_id = t.id)
-> Seq Scan on tbl_erp_wage_ticket_bank_outs r (cost=0.00..1.27 rows=19 width=12)
Filter: (erp_bank_id = 1)
-> Hash (cost=1.19..1.19 rows=13 width=4)
-> Seq Scan on tbl_erp_wage_tickets t (cost=0.00..1.19 rows=13 width=4)
Filter: (status = ANY ('{2,5}'::integer[]))