select distinct(b.shj), b.wldwmch, b.lxr, b.lxdh, b.xb, b.shj, b.fdxx, b.ylchsrq1 from cm_hygl_hyk a inner join cm_jchxx_wldw b on a.khml_id=b.id where gsbh='CM' and len(a.shj)=11 and replace(b.ylchsrq1,year(b.ylchsrq1),year(getdate()))-getdate() between -1 and 5