| Sort (cost=9.33..9.34 rows=1 width=219) |
| Sort Key: serial_no DESC |
| -> Seq Scan on tbl_erp_sales_outbounds (cost=0.00..9.32 rows=1 width=219) |
| Filter: ((created_at >= '2026-07-04 00:00:00+08'::timestamp with time zone) AND (created_at <= '2026-07-04 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~* '%XSCKD-20260704-%'::text) AND (length((serial_no)::text) = 20)) |