QUERY PLAN
Aggregate (cost=2.30..2.31 rows=1 width=32)
-> Hash Join (cost=1.12..2.29 rows=1 width=6)
Hash Cond: (t.id = r.erp_personal_tax_id)
-> Seq Scan on tbl_erp_personal_taxs t (cost=0.00..1.12 rows=9 width=4)
Filter: (is_payment_settle AND (status = ANY ('{2,5}'::integer[])))
-> Hash (cost=1.11..1.11 rows=1 width=10)
-> Seq Scan on tbl_erp_personal_tax_bank_outs r (cost=0.00..1.11 rows=1 width=10)
Filter: (erp_bank_id = 2)