现有两个表,Employee,Department 表结构如下:
Department:
DepartmentID,DepartmentName
001 IT
002 Sales
003 Support
Employee:
EmployeeID,EmployeeName,Sex, DepartmentID
1001 Joe Male 001
1002 Lee Female 001
1002 Wong Female 002
1002 Chou Male 003
1002 Chang Male 003
1002 Sumg Female 003
我现在想统计每个部门男女员工的人数,要求这样的结果
DepartmentName Male Female
IT 1 1
Sales 0 1
Support 2 1