| Sort (cost=1.03..1.04 rows=1 width=356) |
| Sort Key: serial_no DESC |
| -> Seq Scan on tbl_erp_sales_returns (cost=0.00..1.02 rows=1 width=356) |
| Filter: ((created_at >= '2025-12-18 00:00:00+08'::timestamp with time zone) AND (created_at <= '2025-12-18 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~ '%XSTHD-20251218-%'::text) AND (length((serial_no)::text) = 20)) |