电脑桌面
添加蚂蚁七词文库到电脑桌面
安装后可以在桌面快捷访问

考勤档案及历史2099重复数据删除

来源:金蝶云社区作者:金蝶2024-09-222

考勤档案及历史2099重复数据删除

[适用版本]

8.5及以上版本

[操作步骤]

--备份

select * into attendancefile0307 from T_hr_ats_attendancefile select * into attendancefilehis0307 from T_hr_ats_attendancefilehis

--查询考勤档案的多条重复数据

select * FROM T_hr_ats_attendancefile m where exists ( select fproposerid,feffdt,fleffdt,fadminorgunitid,fpositionid from T_hr_ats_attendancefile where m.fproposerid = fproposerid group by fproposerid,feffdt,fleffdt,fadminorgunitid,fpositionid having count(*)>1) and fleffdt = {ts '2099-12-31'} and fid not in (select min(fid) from T_hr_ats_attendancefile group by fproposerid,feffdt,fleffdt,fadminorgunitid,fpositionid having count(*)>1)

--删除考勤档案的多条重复数据

delete FROM T_hr_ats_attendancefile m where exists ( select fproposerid,feffdt,fleffdt,fadminorgunitid,fpositionid from T_hr_ats_attendancefile where m.fproposerid = fproposerid group by fproposerid,feffdt,fleffdt,fadminorgunitid,fpositionid having count(*)>1) and fleffdt = {ts '2099-12-31'} and f

考勤档案及历史2099重复数据删除

[适用版本]8.5及以上版本[操作步骤]--备份 select * into attendancefile0307 from T_hr_ats_attendancefileselect * into attend...
点击下载文档文档为doc格式

声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

已经是第一篇
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息
QQ群
  • 答案:my7c点击这里加入QQ群
支持邮箱
微信
  • 微信