QUERY PLAN
Aggregate (cost=2.68..2.69 rows=1 width=32)
-> Hash Join (cost=1.34..2.65 rows=9 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=11 width=12)
Filter: (settle_at <= '2025-12-31 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)