QUERY PLAN
Sort (cost=14.06..14.07 rows=1 width=417)
Sort Key: serial_no DESC
-> Seq Scan on tbl_erp_inventory_disassembles (cost=0.00..14.05 rows=1 width=417)
Filter: ((created_at >= '2026-05-29 00:00:00+08'::timestamp with time zone) AND (created_at <= '2026-05-29 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~* '%CXD-20260529-%'::text) AND (length((serial_no)::text) = 18))