QUERY PLAN
Aggregate (cost=327.09..327.10 rows=1 width=32)
-> Seq Scan on tbl_erp_cash_cost_tickets t (cost=0.00..324.31 rows=1112 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))