QUERY PLAN
Sort (cost=85.42..85.42 rows=1 width=227)
Sort Key: serial_no DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..85.41 rows=1 width=227)
Filter: ((created_at >= '2026-06-27 00:00:00+08'::timestamp with time zone) AND (created_at <= '2026-06-27 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~* '%SKD-20260627-%'::text) AND (length((serial_no)::text) = 18))