表结构

要求:请用一条sql语句统计出下面结果(优秀条件不低于80分)

SQL语句:
SELECT `type`,sum(score >= 80) as 优秀,sum(score < 80) as 不优秀 from ab_user GROUP by type
表结构
要求:请用一条sql语句统计出下面结果(优秀条件不低于80分)
SQL语句:
SELECT `type`,sum(score >= 80) as 优秀,sum(score < 80) as 不优秀 from ab_user GROUP by type
本文标题:SQL语法技巧记录(根据某字段的不同值,查询另一字段符合条件的记
本文链接:https://www.haomeiwen.com/subject/lfouqftx.html
网友评论