QUERY PLAN
Aggregate (cost=2.50..2.51 rows=1 width=32)
-> Hash Join (cost=1.26..2.49 rows=1 width=32)
Hash Cond: (t.id = r.erp_wage_ticket_id)
-> Seq Scan on tbl_erp_wage_tickets t (cost=0.00..1.18 rows=12 width=4)
Filter: (status = ANY ('{2,5}'::integer[]))
-> Hash (cost=1.25..1.25 rows=1 width=36)
-> Seq Scan on tbl_erp_wage_ticket_bank_outs r (cost=0.00..1.25 rows=1 width=36)
Filter: (erp_bank_id = 1)