QUERY PLAN
Aggregate (cost=4.00..4.01 rows=1 width=32)
-> Hash Join (cost=1.18..3.98 rows=7 width=32)
Hash Cond: (t.id = r.erp_other_income_ticket_id)
-> Seq Scan on tbl_erp_other_income_tickets t (cost=0.00..2.60 rows=36 width=4)
Filter: ((verify_at <= '2026-06-30 23:59:59+08'::timestamp with time zone) AND (status = 2))
-> Hash (cost=1.08..1.08 rows=8 width=36)
-> Seq Scan on tbl_erp_other_income_ticket_purchase_contract_settles r (cost=0.00..1.08 rows=8 width=36)