| Sort (cost=1.51..1.51 rows=1 width=243) |
| Sort Key: serial_no DESC |
| -> Seq Scan on tbl_erp_purchase_gifts (cost=0.00..1.50 rows=1 width=243) |
| Filter: ((created_at >= '2026-07-01 00:00:00+08'::timestamp with time zone) AND (created_at <= '2026-07-01 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~* '%HZD-20260701-%'::text) AND (length((serial_no)::text) = 18)) |