QUERY PLAN
Aggregate (cost=2.60..2.61 rows=1 width=32)
-> Hash Join (cost=1.31..2.58 rows=6 width=32)
Hash Cond: (r.erp_wage_ticket_id = t.id)
-> Seq Scan on tbl_erp_wage_ticket_bank_outs r (cost=0.00..1.25 rows=7 width=36)
Filter: (settle_at <= '2026-06-30 23:59:59+08'::timestamp with time zone)
-> Hash (cost=1.18..1.18 rows=11 width=4)
-> Seq Scan on tbl_erp_wage_tickets t (cost=0.00..1.18 rows=11 width=4)
Filter: (status = 2)