在学生关系student(sid,xb……)中,student的属性分别表示学号和性别,若要统计student表中男、女学生的人数,下列SQL语句正确的是( )。
A. SELECT xb AS '性别',COUNT(*) AS '人数' FROM student GROUP BY sid
B. SELECT xb AS '性别',COUNT(*) AS '人数' FROM student GROUP BY xb
C. SELECT xb AS '性别',COUNT(*) AS '人数' FROM student ORDER BY sid
D. SELECT xb AS '性别',COUNT(*) AS '人数' FROM student ORDER BY xb