select
   count( case  when status='1' then number1 end) as '检查不及格',
      count(case when status='2' then number1 end)  as '终止作废',
        sum( case when status='3' then number2 end)  as '遗失作废'
from   table1

 

 

多行  并  一行查询

相关文章:

  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2022-02-02
猜你喜欢
  • 2022-12-23
  • 2021-12-17
  • 2021-11-29
  • 2021-11-06
  • 2021-12-17
相关资源
相似解决方案