网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
SELECT COUNT(SAL) FROM EMP GROUP BY DEPTNO;意思是( )
A.求每个部门中的工资
B.求每个部门中工资的大小
C.求每个部门中工资的综合
D.求每个部门中工资的个数
参考答案
更多 “ SELECT COUNT(SAL) FROM EMP GROUP BY DEPTNO;意思是( )A.求每个部门中的工资B.求每个部门中工资的大小C.求每个部门中工资的综合D.求每个部门中工资的个数 ” 相关考题
考题
检索最少有5名职工的每个部门的职工基本工资的总额,正确的语句是( )。A.SELECT部门号,COUNT(*),SUM(基本工资)FROM职工; HAVING COUNT(*)>=5B.SELECT部门号,COUNT(*),SUM(基本工资)FROM职工; GROUP BY基本工资HAVING COUNT(*)>=5C.SELECT部门号,COUNT(*),SUM(基本工资)FROM职工; GROUP BY部门号HAVING COUNT(*)>=5D.SELECT部门号,COUNT(*),SUM(基本工资)FROM职工; GROUP BY部门号WHERE COUNT(*)>=5
考题
SELECT COUNT(SAL) FROM EMP GROUP BY DEPTNO;意思是________。
A.求每个部门中的工资B.求每个部门中工资的大小C.求每个部门中工资的总和D.求每个部门中工资的个数
考题
检索最少有5名职工的每个部门的职工基本工资的总额( )。A.SELECT 部门号,COUNT(*),SUM(基本工资) FROM 职工; HAVING COUNT(*)>=5B.SELECT 部门号,COUNT(*),SUM(基本工资) FROM 职工; GROUP BY 基本工资 HAVING COUNT(*)>=5C.SELECT 部门号,COUNT(*),SUM(基本工资) FROM 职工; GROUP BY 部门号 HAVING COUNT(*)>=5D.SELECT 部门号,COUNT(*),SUM(基本工资) FROM 职工; GROUP BY 部门号 WHERE COUNT(*)>=5
考题
求至少有两个职工的每个仓库的平均工资A.SELECT 仓库号,COUNT(*),AVG(工资)FROM 职工表; HAVING COUNT(*)=2B.SELECT 仓库号,COUNT(*),AVG(工资)FROM 职工表; GROUP BY 仓库号 HAVING COUNT(*)=2C.SELECT 仓库号,COUNT(*),AVG(工资)FROM 职工表; GROUP BY 仓库号 SET COUNT(*)=2D.SELECT 仓库号,COUNT(*),AVG(工资)FROM 职工表; GROUP BY 仓库号 WHERE COUNT(*)=2
考题
求至少有两个职工的每个仓库的平均工资______。A.SELECT仓库号,COUNT(*),AVG(工资)FROM职工表; HAVINGCOUNT(*)>=2B.SELECT仓库号,COUNT(*),AVG(工资)FROM职工表; GROUPBY仓库号HAVING COUNT(*)>=2C.SELECT仓库号,COUNT(*),AVG(工资)FROM职工表; GROUPBY仓库号SET COUNT(*)>=2D.SELECT仓库号,COUNT(*),AVG(工资)FROM职工表; GROUPBY仓库号WHERE COUNT(*)>=2
考题
设有“职工”表,表结构如下:职工(部门号C(2)、职工号C(4)、姓名C(8)、年龄N(2)、工资N(7,2))检索最少有3名职工的每个部门的职工工资的总额( )。A)SELECT部门号,COUNT(﹡),SUM(工资)FROM职工;HAVING COUNT(﹡)﹥=3B)SELECT部门号,COUNT(﹡),SUM(1资)FROM职工;GROUP BY基本工资HAVING COUNT(﹡)=3C)SELECT部门号,COUNT(﹡),SUM(1资)FROM职工;GROUP BY部门号HAVING COUNT(﹡)=3D)SELECT部门号,COUNT(﹡),SUM(T资)FROM职工;GROUP BY部门号WHERE COUNT(﹡)=3
考题
求至少有两个职工的每个仓库的平均工资A.SELECT 仓库号,COUNT(*),AVG(工资)FROM 职工表;HAVING COUNT(*)=2B.SELECT 仓库号,COUNT(*),AVG(工资)FROM 职工表;GROUP BY 仓库号 HAVING COUNT(*)=2C.SELECT 仓库号,COUNT(*),AVG(工资)FROM 职工表;GROUP BY 仓库号 SET COUNT(*)=2D.SELECT 仓库号,COUNT(*),AVG(工资)FROM 职工表;GROUP BY 仓库号 WHERE COUNT(*)=2
考题
假设有职工表(职工号,仓库号,工资),将下面的SQL语句补充完整,求至少有两个职工的每个仓库的平均工资。SELECT仓库号,COUNT(﹡),AVG(工资)FROM职工;GROUP BY仓库号__________COUNT(﹡)=2
考题
列出所有部门的职工人数(包括没有职工的部门) ()。A.select dept.deptno,dname,count(emp.empno) from emp,dept where emp.deptno=dept.deptno group by dept.deptno,dname;B.select dept.deptno,dname,count(emp.empno) from emp,dept where emp.deptno()=dept.deptno group by dept.deptno,dname;C.select dept.deptno,dname,count(emp.empno) from emp,dept where emp.deptno=dept.deptno() group by dept.deptno,dname;D.select dept.deptno,dname,count(emp.empno) from emp,dept where emp.deptno(
热门标签
最新试卷