QUERY PLAN
Aggregate (cost=13.62..13.63 rows=1 width=32)
-> Seq Scan on tbl_erp_other_payment_tickets t (cost=0.00..13.61 rows=1 width=64)
Filter: ((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) AND (status = 2) AND (ticket_type = ANY ('{1,2,4}'::integer[])))