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

推荐订阅源

T
Troy Hunt's Blog
GbyAI
GbyAI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
Engineering at Meta
Engineering at Meta
The Register - Security
The Register - Security
阮一峰的网络日志
阮一峰的网络日志
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
F
Fortinet All Blogs
博客园 - 司徒正美
博客园 - 聂微东
T
Tailwind CSS Blog
MyScale Blog
MyScale Blog
Microsoft Security Blog
Microsoft Security Blog
Jina AI
Jina AI
A
About on SuperTechFans
Y
Y Combinator Blog
N
Netflix TechBlog - Medium
V
V2EX
I
InfoQ
WordPress大学
WordPress大学
小众软件
小众软件
The Cloudflare Blog
Recent Announcements
Recent Announcements
U
Unit 42
The Last Watchdog
The Last Watchdog
P
Palo Alto Networks Blog
Vercel News
Vercel News
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
M
MIT News - Artificial intelligence
Project Zero
Project Zero
美团技术团队
L
LangChain Blog
S
Security @ Cisco Blogs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Last Week in AI
Last Week in AI
W
WeLiveSecurity
S
Securelist
H
Hacker News: Front Page
K
Kaspersky official blog
Martin Fowler
Martin Fowler
Know Your Adversary
Know Your Adversary
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
J
Java Code Geeks
P
Proofpoint News Feed
有赞技术团队
有赞技术团队
Google Online Security Blog
Google Online Security Blog
D
DataBreaches.Net

博客园 - BigRain

小学生学习汉字,汉字抓取 c# regex regextools cache 访问频率的思考 python 百度cpc点击 PPT辅助工具 检查外链的方法 webService启用cookie的另一种方法 百度调价HttpWebRequest 装饰者模式 第一个android程序闪亮登场 SQL 的一些批量插入和修改 职责链模式的运用 State Pattern 程序人生 SerialPort实现modem的来电显示 利用枚举进行状态的设计 singleton模式 在软件开发中的运用 我对当前项目的一些看法 闲话闲说——关于异常
20130118SQL记录
BigRain · 2013-01-18 · via 博客园 - BigRain

update l
set
l.state='X'
from
links l
inner join
(
select max(ID) as ID from links where [time]>'2013/1/1' and state<>'X' group by title having count(1)>5
) b
on l.id=b.id and 1=2


--具体重复的记录 l.id>=a.minID and l.id<=a.maxID 采用主键筛选,加快筛选效率
select l.ID,l.title,l.url,l.author,l.time,l.hospital,l.state,
a.maxId,a.MinID,a.repeat
from links l
,
(select title,max(ID) maxID,min(ID) minID,count(1) repeat
from links
where [time]>'2013/1/1'
group by title
having count(1) >3
)a
where l.id>=a.minID and l.id<=a.maxID and l.title=a.title
order by a.minID desc

select c.employee,
count(CASE WHEN c.hospital = '********' then 1 else null end) as 定州,
count(CASE WHEN c.hospital = '********' then 1 else null end) as 辛集,
count(CASE WHEN c.hospital = '********' then 1 else null end) as 任丘,
count(CASE WHEN c.hospital = '********' then 1 else null end) as 藁城,
count(CASE WHEN c.hospital = '********' then 1 else null end) as 安国
from customers c
where state='就诊'
and medicaled>='2012/12/1'
and medicaled<'2013/1/1'
group by employee
order by employee