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