QUERY PLAN
Sort (cost=1.12..1.13 rows=1 width=381)
Sort Key: serial_no DESC
-> Seq Scan on tbl_erp_other_income_tickets (cost=0.00..1.11 rows=1 width=381)
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 ~~* '%QTSR-20250911-%'::text) AND (length((serial_no)::text) = 19))