QUERY PLAN
Aggregate (cost=15.70..15.71 rows=1 width=32)
-> Hash Right Join (cost=1.04..15.01 rows=276 width=5)
Hash Cond: (eipss.erp_inventory_build_spent_id = t.id)
-> Seq Scan on tbl_erp_inventory_product_spents eipss (cost=0.00..12.51 rows=551 width=9)
-> Hash (cost=1.03..1.03 rows=1 width=4)
-> Seq Scan on tbl_erp_inventory_builds t (cost=0.00..1.03 rows=1 width=4)
Filter: ((verify_at <= '2026-06-30 23:59:59+08'::timestamp with time zone) AND (status = 2))