QUERY PLAN
Sort (cost=1.03..1.04 rows=1 width=341)
Sort Key: serial_no DESC
-> Seq Scan on tbl_erp_provident_funds (cost=0.00..1.02 rows=1 width=341)
Filter: ((created_at >= '2025-09-15 00:00:00+08'::timestamp with time zone) AND (created_at <= '2025-09-15 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~* '%GJJD-20250915-%'::text) AND (length((serial_no)::text) = 19))