QUERY PLAN
Sort (cost=81.91..81.92 rows=1 width=188)
Sort Key: serial_no DESC
-> Seq Scan on tbl_erp_payment_tickets (cost=0.00..81.90 rows=1 width=188)
Filter: ((created_at >= '2025-08-21 00:00:00+08'::timestamp with time zone) AND (created_at <= '2025-08-21 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~* '%FKD-20250821-%'::text) AND (length((serial_no)::text) = 18))