其实用AVG更简单一些:ROUND(AVG(CASE WHEN type = 'completed' THEN 0 ELSE 1 END),3) AS p
10

相关推荐

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