你可能感兴趣的试题
SELECT仓库号,COUNT(*)AS人数,AVG(工资)AS平均工资FROM职工; GROUP BY仓库号WHERE COUNT(*)>=4 SELECT仓库号,COUNT(*)AS人数,AVG(工资)AS平均工资FROM职工; GROUP BY仓库号HAVING COUNT(*)>=4 SELECT仓库号,COUNT(*)AS人数,AVG(工资)AS平均工资FROM职工; GROUP BY职工号WHERE COUNT(*)>=4 SELECT仓库号,COUNT(*)AS人数,AVG(工资)AS平均工资FROM职工; GROUP BY职工号HAVING COUNT(*)>=4
3500.00 3000.00 5000.00 10500.00
SELECT * FROM 职工表 WHERE 工资 BETWEEN 1500 AND 2000 SELECT * FROM 职工表 WHERE 工资 BETWEEN 2000 AND 1500 SELECT * FROM 职工表 WHERE 工资 FROM 1500 INTO 2000 SELECT * FROM 职工表 WHERE 工资 FROM 2000 INTO 1500
3500.00 3000.00 5000.00 10500.00
1500.00 3000.00 5000.00 10500.00
3500.00 3000.00 5000.00 10500.00
SELECT DISTINCT仓库号FROM职工WHERE工资>=ANY=; (SELECT MAX(工资)FROM职工WHERE仓库号="WH1") SELECT DISTINCT仓库号FROM职工WHERE工资>=ANY; (SELECT工资FROM职工WHERE仓库号="WH1") SELECT DISTINCT仓库号FROM职工WHERE工资>=ALL; (SELECT工资FROM职工WHERE仓库号="WH1") SELECT DISTINCT仓库号FROM职工WHERE工资>=ALL; (SELECT MAX(工资)FROM职工WHERE仓库号="WH1")
SELECT DISTINCT仓库号FROM职工WHERE工资>=ANY=;
(SELECT MAX(工资)FROM职工WHERE仓库号="WH1") SELECT DISTINCT仓库号FROM职工WHERE工资>=ANY;
(SELECT工资FROM职工WHERE仓库号="WH1") SELECT DISTINCT仓库号FROM职工WHERE工资>=ALL;
(SELECT工资FROM职工WHERE仓库号="WH1") SELECT DISTINCT仓库号FROM职工WHERE工资>=ALL;
(SELECT MAX(工资)FROM职工WHERE仓库号="WH1")
SELECT 职工号,工资 FROM 职工表; WHERE 仓库表.所在城市="广州" SELECT 职工号,工资 FROM 职工表; WHERE 仓库表.仓库号=职工表.仓库号;AND 仓库表.所在城市="广州" SELECT 职工号,工资 FROM 仓库表,职工表; WHERE 仓库表.仓库号=职工表.仓库号;AND 仓库表.所在城市="广州" SELECT 职工号,工资 FROM 仓库表,职工表; WHERE 仓库表.仓库号=职工表.仓库号; OR 仓库表.所在城市="广州/
SELECT仓库号,COUNT(*)AS人数,AVG(工资)AS平均工资FROM职工;
GROUP BY仓库号WHERE COUNT(*)>=4 SELECT仓库号,COUNT(*)AS人数,AVG(工资)AS平均工资FROM职工;
GROUP BY仓库号HAVING COUNT(*)>=4 SELECT仓库号,COUNT(*)AS人数,AVG(工资)AS平均工资FROM职工;
GROUP BY职工号WHERE COUNT(*)>=4 SELECT仓库号,COUNT(*)AS人数,AVG(工资)AS平均工资FROM职工;
GROUP BY职工号HAVING COUNT(*)>=4