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

推荐订阅源

博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
S
SegmentFault 最新的问题
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
F
Fortinet All Blogs
TaoSecurity Blog
TaoSecurity Blog
D
Docker
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
宝玉的分享
宝玉的分享
腾讯CDC
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
T
The Exploit Database - CXSecurity.com
T
The Blog of Author Tim Ferriss
V
V2EX
S
Securelist
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
CERT Recently Published Vulnerability Notes
A
Arctic Wolf
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
Y
Y Combinator Blog
P
Proofpoint News Feed
T
Tor Project blog
AWS News Blog
AWS News Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
博客园 - 聂微东
T
Threat Research - Cisco Blogs
B
Blog
Attack and Defense Labs
Attack and Defense Labs
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
N
News and Events Feed by Topic
博客园 - 司徒正美
H
Help Net Security
C
Cisco Blogs
C
Check Point Blog
S
Secure Thoughts

博客园 - 梦飞天蝎

[导入]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数据文件恢复高级篇
[导入]案例入厂前和离职后的旷工都清除掉,但无法清除离职前的旷工记录喔20080304
梦飞天蝎 · 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)  评论()    收藏  举报