QUERY PLAN
Aggregate (cost=489.97..489.98 rows=1 width=32)
-> Seq Scan on tbl_erp_cash_cost_tickets t (cost=0.00..487.21 rows=1106 width=5)
Filter: ((bank_settle_at >= '2025-08-08 14:34:58+08'::timestamp with time zone) AND (bank_settle_at <= '2026-06-30 23:59:59+08'::timestamp with time zone) AND (status = 2))