有一个表

查询结果为

用下面的代码写

select COUNT( case NumName  when 'a' then NumName  end ) as 'aaa',
COUNT( case NumName when 'b' then NumName end ) as 'bb',
COUNT( case NumName when 'c' then NumName end) as 'cc'
from dbo.DataTb

最新文章

  1. css中clip-path属性的运用
  2. Just a Hook(HDU1698 线段树的简单应用)
  3. Asp.Net实现FORM认证的一些使用技巧(转)
  4. js之arguments对象的使用
  5. linux kill命令详解
  6. IOS,Object C学习过程中遇到的attributes
  7. WINDOWS+L组合键锁定XP
  8. [RxJS] Transformation operator: scan
  9. 使用NAT方式连网的linux服务器虚拟机搭建
  10. VS2012 运行项目在IE中可以运行,但是在google和firefox却不能打开。
  11. Hdu 1404 Digital Deletions
  12. Strategic Game HDU
  13. 一口一口吃掉Hexo(一)
  14. Socket编程实践(11) --epoll原理与封装
  15. Magicodes.WeiChat——发送模板消息
  16. Linux:Day13(上) CentOS系统启动流程
  17. Netty实战九之单元测试
  18. MySql 数据库安装、环境变量配置 以及 本地连接
  19. 解决xcode10打包报错:That command depends on command in Target ‘xxx’:scrpit phase"[CP] Copy Pods Resources"
  20. C# BindingSource

热门文章

  1. ASP.NET 2.0 页(Page)生命周期概述
  2. html中的rowspan和colspan
  3. jTDS驱动兼容性问题
  4. IP Editor IP控件(对比一下封装IP控件)
  5. thinkPHP 模板的使用技巧(十三)
  6. [Windows Phone]修改应用程序主题
  7. Python+Django+SAE系列教程14-----使表单更安全
  8. TCP/IP详细解释--TCP/IP可靠的原则 推拉窗 拥塞窗口
  9. AeroGear.js 1.2.0 发布,手机Web应用脚手架 - 开源中国社区
  10. 20.23. xmlrpclib — XML-RPC client access — Python v2.7.5 documentation