QUERY PLAN
Sort (cost=14.28..14.29 rows=1 width=384)
Sort Key: serial_no DESC
-> Seq Scan on tbl_erp_cost_convert_tickets (cost=0.00..14.27 rows=1 width=384)
Filter: ((created_at >= '2025-08-12 00:00:00+08'::timestamp with time zone) AND (created_at <= '2025-08-12 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~* '%FYZSRD-20250812-%'::text) AND (length((serial_no)::text) = 21))