QUERY PLAN
Sort (cost=13.83..13.84 rows=1 width=429)
Sort Key: serial_no DESC
-> Seq Scan on tbl_erp_purchase_inbounds (cost=0.00..13.82 rows=1 width=429)
Filter: ((created_at >= '2025-08-11 00:00:00+08'::timestamp with time zone) AND (created_at <= '2025-08-11 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~* '%CGRK-20250811-%'::text) AND (length((serial_no)::text) = 19))