QUERY PLAN
Aggregate (cost=2.25..2.26 rows=1 width=32)
-> Hash Join (cost=1.10..2.25 rows=1 width=7)
Hash Cond: (t.id = r.erp_provident_fund_id)
-> Seq Scan on tbl_erp_provident_funds t (cost=0.00..1.11 rows=7 width=4)
Filter: (is_payment_settle AND (status = ANY ('{2,5}'::integer[])))
-> Hash (cost=1.09..1.09 rows=1 width=11)
-> Seq Scan on tbl_erp_provident_fund_bank_outs r (cost=0.00..1.09 rows=1 width=11)
Filter: (erp_bank_id = 2)