
MSSQL
haothree
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Table1
select fnumber , ( case when famonut>0 then famonut else 0 end ) '收入', ( case when famonut else 0 end ) '支出' from table1 最终效果图原始数据原创 2011-11-15 22:55:51 · 575 阅读 · 0 评论 -
Table2
select name, sum( case score when N'胜' then 1 else 0 end ) as '胜', sum( case score when N'败' then 1 else 0 end ) as '败' from table2 group by name 原始数据最终效果原创 2011-11-15 23:12:21 · 315 阅读 · 0 评论