QUERY PLAN
Sort (cost=1.08..1.08 rows=1 width=352)
Sort Key: serial_no DESC
-> Seq Scan on tbl_erp_inventory_losts (cost=0.00..1.07 rows=1 width=352)
Filter: ((created_at >= '2026-06-04 00:00:00+08'::timestamp with time zone) AND (created_at <= '2026-06-04 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~* '%BSD-20260604-%'::text) AND (length((serial_no)::text) = 18))