| Sort (cost=3.07..3.07 rows=1 width=320) |
| Sort Key: serial_no DESC |
| -> Seq Scan on tbl_erp_other_collect_tickets (cost=0.00..3.06 rows=1 width=320) |
| Filter: ((created_at >= '2026-06-28 00:00:00+08'::timestamp with time zone) AND (created_at <= '2026-06-28 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~* '%QTYSD-20260628-%'::text) AND (length((serial_no)::text) = 20)) |