QUERY PLAN
Sort (cost=1.35..1.35 rows=1 width=268)
Sort Key: serial_no DESC
-> Seq Scan on tbl_erp_cost_convert_tickets (cost=0.00..1.34 rows=1 width=268)
Filter: ((created_at >= '2025-09-17 00:00:00+08'::timestamp with time zone) AND (created_at <= '2025-09-17 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~* '%FYZSRD-20250917-%'::text) AND (length((serial_no)::text) = 21))