27,581
社区成员
发帖
与我相关
我的任务
分享update employee
set employee.educationid=k.educationid
from (select employeeid ,educationid,max(beginenddate_enddate) from Employeeeducation
where educationid is not null
group by employeeid,educationid ,[name])k
where k.employeeid=employee.employeeidupdate employee set employee.educationid=k.educationid
from employee,(select employeeid ,educationid c ,max(beginenddate_enddate) from Employeeeducation
where educationid is not null
group by employeeid,educationid ,[name])k
where k.employeeid=employee.employeeid