【简答题】查询有10名以上(含10名)职工的部门信息(部门名和职工人数),并按职工人数降序排序。正确的命令是A)SELECT部门名,COUNT(职工号)AS职工人数; FROM部门,职工WHERE部门.部门号=职工.部门号; GROUP BY部门名HAVING COUNT(*)>=10 ORDER BY COUNT(职工号)ASCB)SEIECT部门名,COUNT(职工号)AS职工人数; FROM部门,职工...
SELECT部门名,COUNT(职工号)AS职工人数; FROM部门,职工WHERE部门.部门号=职工.部门号; GROUP BY部门名HAVING COUNT(*)>=10; ORDER BY COUNT(职工号)ASC
C.
SEIECT部门名,COINT(职工号)AS职工人数; FROM部门,职工WHERE部门.部门号=职工.部门号: GROUP BY 部门名HAVING COUNT(*)>=10; ORDER BY COUNT(职工号)DESC C.SELECT部门名,COUNT(职工号)AS职工人数; FROM部门,职工WHERE部门.部门号=职工.部门号; GROUPBY部门名HAVING COUNT(*)>=10; ORDER BY 职工人数ASC.
D.
SELECT部门名,COUNT(职工号)AS职工人数; FROM部门,职工WHERE部门.部门号=职工.部门号; GROUP BY部门名HAVING COUNT(*)>=10; ORDER BY职工人数DESC