QUERY PLAN
Aggregate (cost=4.35..4.36 rows=1 width=32)
-> Hash Join (cost=2.93..4.30 rows=19 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=26 width=4)
-> Seq Scan on tbl_erp_other_income_tickets t (cost=0.00..2.60 rows=26 width=4)
Filter: ((verify_at <= '2025-12-31 23:59:59+08'::timestamp with time zone) AND (status = 2))