QUERY PLAN
Sort (cost=91.98..91.98 rows=1 width=213)
Sort Key: serial_no DESC
-> Seq Scan on tbl_erp_payment_tickets (cost=0.00..91.97 rows=1 width=213)
Filter: ((created_at >= '2026-06-22 00:00:00+08'::timestamp with time zone) AND (created_at <= '2026-06-22 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~* '%FKD-20260622-%'::text) AND (length((serial_no)::text) = 18))