题目:将student表按照gender字段进行分组查询,查询出grade字段值之和小于300的分组,依据上述要求,下面选项中,正确的SQL语句是:
A. SELECT sum (grade), gender FROM student GROUP BY gender HAVING SUM (grade) <300;
B. SELECT sum (grade), gender FROM student GROUP BY gender WHERE SUM (grade) <300;
C. SELECT sum (grade), gender FROM student WHERE SUM (grade) <300 GROUP BY gender;
D. 以上语句都不对
答案:评论后可见此内容