QUERY PLAN
Sort (cost=81.58..81.58 rows=1 width=189)
Sort Key: serial_no DESC
-> Seq Scan on tbl_erp_payment_tickets (cost=0.00..81.56 rows=1 width=189)
Filter: ((created_at >= '2025-09-11 00:00:00+08'::timestamp with time zone) AND (created_at <= '2025-09-11 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~* '%FKD-20250911-%'::text) AND (length((serial_no)::text) = 18))