QUERY PLAN
Aggregate (cost=9.98..9.99 rows=1 width=32)
-> Hash Join (cost=1.16..9.78 rows=27 width=9)
Hash Cond: (am.erp_social_insurance_id = t.id)
-> Seq Scan on tbl_erp_social_insurance_amounts am (cost=0.00..7.67 rows=267 width=13)
-> Hash (cost=1.15..1.15 rows=1 width=4)
-> Seq Scan on tbl_erp_social_insurances t (cost=0.00..1.15 rows=1 width=4)
Filter: ((verify_at <= '2025-12-31 23:59:59+08'::timestamp with time zone) AND (status = 2))