QUERY PLAN
Aggregate (cost=5.28..5.29 rows=1 width=32)
-> Hash Join (cost=3.84..5.23 rows=20 width=6)
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.31 rows=31 width=10)
-> Hash (cost=3.20..3.20 rows=51 width=4)
-> Seq Scan on tbl_erp_other_income_tickets t (cost=0.00..3.20 rows=51 width=4)
Filter: ((verify_at <= '2025-12-31 23:59:59+08'::timestamp with time zone) AND (status = 2))