| Sort (cost=1.08..1.08 rows=1 width=187) |
| Sort Key: serial_no DESC |
| -> Seq Scan on tbl_erp_advance_payment_tickets (cost=0.00..1.07 rows=1 width=187) |
| Filter: ((created_at >= '2026-07-15 00:00:00+08'::timestamp with time zone) AND (created_at <= '2026-07-15 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~* '%YFKD-20260715-%'::text) AND (length((serial_no)::text) = 19)) |