QUERY PLAN
Aggregate (cost=291.19..291.19 rows=1 width=32)
-> Seq Scan on tbl_erp_cash_cost_tickets t (cost=0.00..291.18 rows=1 width=5)
Filter: ((status = ANY ('{2,5}'::integer[])) AND (created_at >= '2025-08-11 19:05:28+08'::timestamp with time zone) AND (created_at >= '2025-08-01 00:00:00+08'::timestamp with time zone) AND (created_at <= '2025-08-31 23:59:59+08'::timestamp with time zone))