QUERY PLAN
Aggregate (cost=4.49..4.50 rows=1 width=32)
-> Hash Join (cost=3.05..4.43 rows=26 width=32)
Hash Cond: (r.erp_other_income_ticket_id = t.id)
-> Seq Scan on tbl_erp_other_income_ticket_bank_ins r (cost=0.00..1.29 rows=29 width=36)
-> Hash (cost=2.60..2.60 rows=36 width=4)
-> 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))