QUERY PLAN
Sort (cost=126.83..126.83 rows=1 width=236)
Sort Key: serial_no DESC
-> Seq Scan on tbl_erp_purchase_orders (cost=0.00..126.81 rows=1 width=236)
Filter: ((created_at >= '2026-06-11 00:00:00+08'::timestamp with time zone) AND (created_at <= '2026-06-11 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~* '%CGDD-20260611-%'::text) AND (length((serial_no)::text) = 19))