SELECT Sex,COUNT(Sex)FROM employeesGROUP BY Sex;SELECT DepartmentName,COUNT(DepartmentName) AS 人数FROM departments LEFT OUTER JOIN employeesON departments.DepartmentID=employees.DepartmentIDGROUP BY DepartmentName;SELECT Education,COUNT(Education) AS 人数FROM employeesGROUP BY Education;SELECT WorkYear as 工作年份,COUNT(*) AS 人数FROM employeesGROUP BY WorkYearORDER BY WorkYear;
