写了一个你看看,举例为三种课程 SELECT count(case when cou1 >=60 then 1 else null end ) /count(*) as kecheng1, count(case when cou2 >=60 then 1 else null end ) /count(*)  as kecheng2, count(case when cou3 >=60 then 1 else null end ) /count(*)  as kecheng3 from  world.gradedata001 

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务