//求类型为1的总和SUM( CASE a.problemType WHEN 1 THEN 1 ELSE 0 END ) case 字段 when 条件 then 值1 else 值2 end 语句
求满足条件的总和SQL语句
原文:https://www.cnblogs.com/drawStart/p/12535816.html