QUERY PLAN
Aggregate (cost=2.09..2.10 rows=1 width=32)
-> Nested Loop (cost=0.00..2.09 rows=1 width=32)
Join Filter: (r.erp_provident_fund_id = t.id)
-> Seq Scan on tbl_erp_provident_fund_bank_outs r (cost=0.00..1.04 rows=1 width=36)
Filter: (settle_at <= '2025-12-31 23:59:59+08'::timestamp with time zone)
-> Seq Scan on tbl_erp_provident_funds t (cost=0.00..1.04 rows=1 width=4)
Filter: (status = 2)