QUERY PLAN
Sort (cost=1.28..1.28 rows=1 width=191)
Sort Key: serial_no DESC
-> Seq Scan on tbl_erp_social_insurances (cost=0.00..1.27 rows=1 width=191)
Filter: ((created_at >= '2026-06-23 00:00:00+08'::timestamp with time zone) AND (created_at <= '2026-06-23 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~* '%SBD-20260623-%'::text) AND (length((serial_no)::text) = 18))