Select count(Ssex) as 男生人数 from Student group by Ssex having Ssex=’男’; Select count(Ssex) as 女生人数 from Student group by Ssex having Ssex=’女’;