部门.dbf:部门号C(8),部门名C(12),负责人C(6),电话C(16)
职工.dbf:部门号C(8),职工号C(10),姓名C(8),性别C(2),出生日期D
查询有10名以上(含10名)职工的部门信息(部门名和职工人数),并按职工人数降序排列。正确的命令是
A.SELECT 部门名,COUNT(职工号) AS 职工人数; FROM 部门,职工 WHERE 部门.部门号=职工.部门号; GROUP BY 部门名 HAVING COUNT(*)>=10; ORDER BY COUNT(职工号) ASC
B.SELECT 部门名,COUNT(职工号) AS 职工人数; FROM 部门,职工 WHERE 部门.部门号=职工.部门号; GROUP BY 部门名 HAVING COUNT(*)>=10; ORDER BY COUNT(职工号) DESC
C.SELECT 部门名,COUNT(职工号) AS 职工人数; FROM 部门,职工 WHERE 部门.部门号=职工.部门号; GROUP BY 部门名 HAVING COUNT(*)>=10 ORDER BY职工人数ASC
D.SELECT 部门名,COUNT(职工号) AS 职工人数; FROM 部门,职工 WHERE 部门.部门号=职工.部门号; GROUP BY 部门名 HAVING COUNT(*)>=10 ORDER BY 职工人数 DESC