当前位置: X题卡 > 所有题目 > 题目详情

检索每个仓库至少有3名职工的工资总额。请对下面的SQL语句填空。 SELECT仓库号,COUNT(*),SUM(工资)FROM职工; GROUP BY仓库号; 【15】 >=3

查看本题答案

你可能感兴趣的试题

SELECT*FROM仓库表WHERE IN;
   (SELECT仓库号FROM职工表)  
SELECT*FROM仓库表WHERE NOT IN;
   (SELECT仓库号FROM职工表)  
SELECT*FROM仓库表WHERE仓库号EXISTS;
   (SELECT*FROM职工表WHERE仓库号=仓库表.仓库号)  
SELECT*FROM仓库表WHERE EXISTS;
  (SELECT*FROM职工表WHERE仓库号=仓库表.仓库号)  
SELECT。FROM仓库表WHEREIN;
(SELECT仓库号FROM职工表)  
SELECT 2p FROM仓库表WHERENOTm;
(SELECT仓库号FROM职工表)  
SELECT::FROM仓库表WHERE仓库号EXISTS;
(SELECT*FROM职工表WHERE仓库号:仓库表.仓库号)  
SELECT*FROM仓库表WHEREEXISTS;
(SEL。E(:T*FROM职工表WHERE仓库号:仓库表.仓库号)  
SELECT * FROM 仓库表 WHERE IN;
(SELECT 仓库号 FROM 职工表)  
SELECT * FROM 仓库表 WHERE NOT IN;
(SELECT 仓库号 FROM 职工表)  
SELECT * FROM 仓库表 WHERE 仓库号 EXISTS;
(SELECT * FROM 职工表 WHERE 仓库号=仓库表.仓库号)  
SELECT * FROM 仓库表 WHERE EXISTS;
(SELECT * FROM 职工表 WHERE 仓库号=仓库表.仓库号)  
SELECT部门号,COUNT( * ),SUM(工资)FROM职工表;  HAVING COUNT( * )>=3  SELECT部门号,COUNT( * ),SUM(工资)FROM职工表;  GROUP BY部门号HAVING COUNT( * )>=3  SELECT部门号,COUNT( * ),SUM(工资)FROM职工表;  GROUP BY部门号SETCOUNT( * )>=3  SELECT部门号,COUNT( * ),SUM(工资)FROM职工表;  GROUP BY部门号WHERE COUNT( * )>=3  
SELECT * FROM 仓库表 WHERE IN; (SELECT 仓库号 FROM 职工表)  SELECT * FROM 仓库表 WHERE NOT IN; (SELECT 仓库号 FROM 职工表)  SELECT * FROM 仓库表 WHERE 仓库号 EXISTS; (SELECT * FROM 职工表 WHERE 仓库号=仓库表.仓库号)  SELECT * FROM 仓库表 WHERE EXISTS; (SELECT * FROM 职工表 WHERE 仓库号=仓库表.仓库号)  
SELECT 部门号,COUNT(*),SUM(工资)FROM 职工表; HAVING COUNT(*)>=3  SELECT 部门号,COUNT(*),SUM(工资)FROM职工表; GROUP BY 部门号 HAVING COUNT(*)>=3  SELECT 部门号,COUNT(*),SUM(工资)FROM 职工表; GROUP BY 部门号 SET COUNT(*)>=3  SELECT 部门号,COUNT(*),SUM(工资)FROM职工表; GROUP BY 部门号 WHERE COUNT(*)>=3  
SELECT*FROM仓库表WHERE IN;   (SELECT仓库号FROM职工表)  SELECT*FROM仓库表WHERE NOT IN;   (SELECT仓库号FROM职工表)  SELECT*FROM仓库表WHERE仓库号EXISTS;   (SELECT*FROM职工表WHERE仓库号=仓库表.仓库号)  SELECT*FROM仓库表WHERE EXISTS;   (SELECT*FROM职工表WHERE仓库号=仓库表.仓库号)  
SELECT。FROM仓库表WHEREIN; (SELECT仓库号FROM职工表)  SELECT 2p FROM仓库表WHERENOTm; (SELECT仓库号FROM职工表)  SELECT::FROM仓库表WHERE仓库号EXISTS; (SELECT*FROM职工表WHERE仓库号:仓库表.仓库号)  SELECT*FROM仓库表WHEREEXISTS; (SEL。E(:T*FROM职工表WHERE仓库号:仓库表.仓库号)  
SELECT 部门号,COUNT(*),SUM(工资)FROM 职工表; HAVING COUNT(*)>=3  SELECT 部门号,COUNT(*),SUM(工资)FROM 职工表; GROUP BY 部门号 HAVING COUNT(*)>=3  SELECT 部门号,COUNT(*),SUM(工资)FROM 职工表; GROUP BY 部门号 SET COUNT(*)>=3  SELECT 部门号,COUNT(*),SUM(工资)FROM 职工表; GROUP BY 部门号 WHERE COUNT(*)>=3  

热门试题

更多