QUERY PLAN
Aggregate (cost=2.73..2.74 rows=1 width=32)
-> Hash Join (cost=1.34..2.68 rows=18 width=8)
Hash Cond: (r.erp_wage_ticket_id = t.id)
-> Seq Scan on tbl_erp_wage_ticket_bank_outs r (cost=0.00..1.27 rows=22 width=12)
Filter: (settle_at <= '2026-06-30 23:59:59+08'::timestamp with time zone)
-> Hash (cost=1.19..1.19 rows=12 width=4)
-> Seq Scan on tbl_erp_wage_tickets t (cost=0.00..1.19 rows=12 width=4)
Filter: (status = 2)