根据员工变动记录更新档案历史期间的组织和职位

解决方案:
问题:根据员工变动记录更新档案历史期间的组织和职位
【适用版本】
通用
【分析处理】
--备份数据
select * into attendancefilehis0612 from t_hr_ats_attendancefilehis
--修复数据
update t_hr_ats_attendancefilehis a set FADMINORGUNITID=( select FADMINORGID from t_hr_emporgrelation
where fassigntype=1 and fisinner=1 and fpersonid=a.fproposerid and a.feffdt>=feffdt and a.fleffdt<=fleffdt
)
where fid in(select a.fid
from t_hr_ats_attendancefilehis a
inner join t_hr_emporgrelation b on a.fproposerid=b.fpersonid and a.feffdt>=b.feffdt and a.fleffdt<=b.fleffdt and b.fassigntype=1 and
根据员工变动记录更新档案历史期间的组织和职位
解决方案:问题:根据员工变动记录更新档案历史期间的组织和职位【适用版本】通用【分析处理】--备份数据select * into attendancefileh...
点击下载文档文档为doc格式
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
上一篇
已经是第一篇
下一篇



