检索最少有4名职工仓库的职工平均工资( )。
A.SELECT 仓库号,COUNT(*) AS人数,AVG(工资) AS 平均工资 FROM 职工; GROUPBY 仓库号 WHERE COUNT(*)>=4
B.SELECT 仓库号,COUNT(*) AS人数,AVG(工资) AS 平均工资 FROM 职工; GROUPBY 仓库号 HAVING COUNT(*)>=4
C.SELECT 仓库号,COUNT(*) AS人数,AVG(工资) AS 平均工资 FROM 职工; GROUPBY 职工号 WHERE COUNT(*)>=4
D.SELECT 仓库号,COUNT(*) AS人数,AVG(工资) AS 平均工资 FROM 职工; GROUPBY 职工号 HAVING COUNT(*)>=4
第1题:
求至少有两个职工的每个仓库的平均工资______。
A.SELECT仓库号,COUNT(*),AVG(工资)FROM职工表; HAVINGCOUNT(*)>=2
B.SELECT仓库号,COUNT(*),AVG(工资)FROM职工表; GROUPBY仓库号HAVING COUNT(*)>=2
C.SELECT仓库号,COUNT(*),AVG(工资)FROM职工表; GROUPBY仓库号SET COUNT(*)>=2
D.SELECT仓库号,COUNT(*),AVG(工资)FROM职工表; GROUPBY仓库号WHERE COUNT(*)>=2
第2题:
求至少有两个职工的每个仓库的平均工资
A.SELECT 仓库号,COUNT(*),AVG(工资)FROM 职工表;
HAVING COUNT(*)>=2
B.SELECT 仓库号,COUNT(*),AVG(工资)FROM 职工表;
GROUP BY 仓库号 HAVING COUNT(*)>=2
C.SELECT 仓库号,COUNT(*),AVG(工资)FROM 职工表;
GROUP BY 仓库号 SET COUNT(*)>=2
D.SELECT 仓库号,COUNT(*),AVG(工资)FROM 职工表;
GROUP BY 仓库号 WHERE COUNT(*)>=2
第3题:
假设有职工表(职工号,仓库号,工资),将下面的SQL语句补充完整,求至少有两个职工的每个仓库的平均工资。
SELECT仓库号,COUNT(﹡),AVG(工资)FROM职工;
GROUP BY仓库号__________COUNT(﹡)>=2
第4题:
检索最少有4名职工仓库的职工平均工资( )。
A.SELECT 仓库号,COLINT(*) AS 人数,AVG(工资) AS 平均工资 FROM 职工; GROUP BY 仓库号 WHERE COUNT(*)>=4
B.SELECT 仓库号,COUNT(*) AS 人数,AVG(工资) AS 平均工资 FROM 职工; GROUP BY 仓库号 HAVING COUNT(*)>=4
C.SELECT 仓库号,COUNT(*) AS 人数,AVG (工资) AS 平均工资 FROM 职工; GROUP BY 职工号 WHERE COUNT(*)>=4
D.SEIECT 仓库号,COUNT(*) AS 人数,AVG(工资) AS 平均工资 FROM 职工; GROUP BY 职工号 HAVING COUNT(*)>=4
第5题:
检索最少有4名职工的仓库的职工平均工资( )。
A)SELECT仓库号,COUNT(﹡)AS人数,AVG(工资)AS平均工资FROM职工;
GROUP BY仓库号WHERE COUNT(﹡)>=4
B)SELECT仓库号,COUNT(﹡)AS人数,AVG(1资)AS平均工资FROM职工;
GROUP BY仓库号HAVING COUNT(﹡)>=4
C)SELECT仓库号,COUNT(木)AS人数,AVG(工资)AS平均工资FROM职工;
GROUP BY职工号WHERE COUNT(﹡)>=4
D)SELECT仓库号,COUNT(﹡)AS人数,AVG(工资)AS平均工资FROM职工;
GROUP BY职工号HAVING COUNT(﹡)>=4