select x.范围, count(*)
  from (select t.ename,
               case
                 when t.sal <= 1000 then
                  '0-1000'
                 when t.sal <= 2000 then
                  '1000-2000'
                 when t.sal <= 3000 then
                  '2000-3000'
                 when t.sal <= 4000 then
                  '3000-4000'
                 when t.sal <= 5000 then
                  '3000-4000'
                 ELSE
                  '太高'
               END as 范围
          from emp t) x
 group by x.范围
 order by x.范围;

最新文章

  1. BZOJ1012: [JSOI2008]最大数maxnumber [线段树 | 单调栈+二分]
  2. codevs 3288 积木大赛
  3. java web学习总结(二十) -------------------监听器属性详解
  4. PHP热身
  5. PS网页设计教程XXVII——设计一个大胆和充满活力的作品集
  6. OpenJudge 2790 迷宫
  7. SpringMVC 流程 配置 接口
  8. udev:renamed network interface eth0 to eth1
  9. append与after区别
  10. PHP-循环结构-数组(难)
  11. yarn 工作原理(2)
  12. Mongo 开发笔记
  13. 51nod1237 最大公约数之和 V3
  14. Hdu1054 Strategic Game(最小覆盖点集)
  15. Invalid action class configuration that references an unknown class named [XX] .
  16. 关于JRebel启动tomcat访问上次工程的index.jsp
  17. Scrapy-从数据库取出IP并判断是否可用
  18. Python3中urllib使用与源代码
  19. (2)R中的数据类型和数据结构
  20. py,pyc,pyw文件的区别和使用

热门文章

  1. pandas(九)数据转换
  2. Notepad++ c编译环境 64
  3. SpringBoot学习笔记(14):使用SpringBootAdmin管理监控你的应用
  4. Django 知识补漏单例模式
  5. Rreact Native 常见错误总结
  6. Linux下解压分包文件zip(zip/z01/z02)【转】
  7. 初识 Zookeeper
  8. nginx重新加载配置(不停服)
  9. scala学习手记3 - var和val
  10. Treflection05_扩展习题