惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
G
Google Developers Blog
Blog — PlanetScale
Blog — PlanetScale
U
Unit 42
A
About on SuperTechFans
Vercel News
Vercel News
B
Blog
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
腾讯CDC
D
Docker
V
Visual Studio Blog
博客园 - 叶小钗
The Cloudflare Blog
Jina AI
Jina AI
B
Blog RSS Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
WordPress大学
WordPress大学
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
D
DataBreaches.Net
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏

博客园 - 梦飞天蝎

[导入]CCNA认证培训介绍 [导入]硬盘参数解读 [导入]SCSI技术 [导入]常用的硬盘接口类型IDE、SCSI、SATA [导入]SCSI卡(图解) [导入]什么是RAID控制器 [导入]微软Office InfoPath 2003概述(转贴) [导入]关于在MOSS的编辑或新建页面隐藏栏 [导入]FTP两种传输模式小结 [导入]sp_unprepare是做什么用的 [导入]left join 的 右表 加条件 某个字段 is not null 是不是无效啊 [导入]案例做出考勤月报表20080303 [导入]SqlServer如何生成动态交叉表查询 [导入]where jzno is not null还可以怎么表达呢 [导入]案例20080220 列出台籍人员全年出勤 [导入]表变量在存储过程中出现了"必须声明变量"的错误,已经声明了啊 [导入]SQL Server字符串处理函数大全 [导入]sql server 的日期转换函数 [导入]SQL数据文件恢复高级篇
[导入]案例入厂前和离职后的旷工都清除掉,但无法清除离职前的...
梦飞天蝎 · 2008-03-04 · via 博客园 - 梦飞天蝎

--====下面语句把入厂前的旷工 和 离职后的旷工现象都清除掉了,但是无法清除离职前的旷工记录喔,因为违反逻辑了!-
update rb200802 set rb200802.kgxs=0 from rb200802,
(select * from (select * from (select no,rcrq,lzrq from rs where lzrq is not null or rcrq>='2008-02-01') as #t1 left join (select no as 'no2',kqrq,kgxs from rb200802 where kgxs>0) as #t2 on #t1.no=#t2.no2 and (#t1.lzrq is not null) and (#t2.kqrq is not null)) as #t3 where #t3.kgxs>0 and (#t3.kqrq>=#t3.lzrq or #t3.kqrq<#t3.rcrq)) as #t4  where Rb200802.no=#t4.no and Rb200802.kqrq=#t4.kqrq
--====承上over!-
文章来源:http://bbs.fzonet.com/rcds/ShowPost.asp?ThreadID=1650

posted on 2008-03-04 01:20  梦飞天蝎  阅读(269)  评论()    收藏  举报