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

推荐订阅源

S
Secure Thoughts
Security Latest
Security Latest
Simon Willison's Weblog
Simon Willison's Weblog
O
OpenAI News
GbyAI
GbyAI
L
LINUX DO - 最新话题
A
Arctic Wolf
T
Tor Project blog
G
GRAHAM CLULEY
I
InfoQ
博客园_首页
IT之家
IT之家
The Register - Security
The Register - Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
The GitHub Blog
The GitHub Blog
Blog — PlanetScale
Blog — PlanetScale
N
Netflix TechBlog - Medium
K
Kaspersky official blog
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
U
Unit 42
PCI Perspectives
PCI Perspectives
量子位
P
Palo Alto Networks Blog
S
Securelist
T
Troy Hunt's Blog
博客园 - 【当耐特】
Recorded Future
Recorded Future
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
Engineering at Meta
Engineering at Meta
T
The Blog of Author Tim Ferriss
博客园 - 聂微东
罗磊的独立博客
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
B
Blog RSS Feed
NISL@THU
NISL@THU
C
Cisco Blogs
T
Threatpost
有赞技术团队
有赞技术团队
Forbes - Security
Forbes - Security
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
T
The Exploit Database - CXSecurity.com
Cloudbric
Cloudbric
Cyberwarzone
Cyberwarzone
Google DeepMind News
Google DeepMind News
C
Cyber Attacks, Cyber Crime and Cyber Security

博客园 - 鱼儿游

经过2个星期的日夜奋战,终于答辩完了 已经信息化的我们能否想起使用或第一想起用信息化的手段办事 8小时是能做很多事的 这几天做论文,作为消遣看了一本很棒的书《金钱魔杖——现代犹太商法》 新的年又完全开始了,回到了北京,一切又是那么忙碌。 生活工作无小事 把有限的精力放在最有意义的事上 保尔·柯察金的那句话太对了,原来人最不能忍受的是碌碌无为 SqlServer如何生成动态交叉表查询-zz 玖玖精品软件下载基地,当前最棒的软件基地 成长中应该知道的20个故事--不错的噢 2006年,希望是我更有收获的一年,也是大家更有成就的一年 ORACLE 体系结构(Architecture of ORACLE) 中国软件业失望与希望--超有理的文章 论程序员应具备的职业素质 Oracle 常用命令大汇总 JDBC的作用及重要接口 数据挖掘术语简介 Internet与Intranet中的人工智能技术
sql交叉查询
鱼儿游 · 2006-01-11 · via 博客园 - 鱼儿游

sql:
select gwlb, count(case when (year(getdate())-year(rybirthday)) between 20 and 30 then rygh end) as '20-30',
count(case when (year(getdate())-year(rybirthday)) between 30 and 40 then rygh end) as '30-40',
count(case when (year(getdate())-year(rybirthday)) between 40 and 50 then rygh end) as '40-50',
count(case when (year(getdate())-year(rybirthday)) between 50 and 60 then rygh end) as '50-60',
count(case when (year(getdate())-year(rybirthday)) between 60 and 70 then rygh end) as '60-70'
from t_ry
group by gwlb

posted on 2006-01-11 16:14  鱼儿游  阅读(556)  评论()    收藏  举报