sql 有条件计数
摘要:
select InstitutionID=LEFT(InstitutionID,9), Irregularities_Type=sum(CASE WHEN Irregularities_Type>0 THEN 1 ELSE 0 END) ,Irregularities_Type2=sum(CASE WHEN Irregularities_Type2>0 THEN 1 ELSE 0 END)... 阅读全文
posted @ 2017-08-01 10:26 gwazy 阅读(2982) 评论(0) 推荐(0) 编辑