对于sc 表格,
希望根据科目(CNO)求 及格率,可使用一下代码
sum(case when score>=60 then 1 else 0 end)/count(*) as 及格率 from sc group by cno;
posted on 2017-08-09 15:53 C_QQ 阅读(86) 评论(0) 收藏 举报