SQL中,“SALARY IN (1000,2000)”语义是
举一反三
- 在工资表中查询工资在1000~2000(不包括1000)元的职工,正确的条件是( )。 A: >1000 or B: Between 1000 and 2000 C: >1000 and D: in(1000,2000)
- 以下语句错误的是() A: SELECTrank,AVG(salary)FROMpeopleGROUPBYrankHAVINGAVG(salary)>1000 B: SELECTrank,AVG(salary)FROMpeopleHAVINGAVG(salary)>1000GROUPBYrank; C: SELECTAVG(salary)FROMpeopleGROUPBYrankHAVINGAVG(salary)>1000; D: SELECTrank,AVG(salary)FROMpeopleGROUPBYrankWHEREAVG(salary)>1000;
- 以下语句错误的是() A: LECT rank, AVG(salary) FROM people HAVING AVG(salary) > 1000 GROUP BY rank; B: SELECT rank, AVG(salary) FROM people GROUP BY rank HAVING AVG(salary) > 1000 C: SELECT rank, AVG(salary) FROM people HAVING AVG(salary) > 1000 GROUP BY rank; D: SELECT AVG(salary) FROM people GROUP BY rank HAVING AVG(salary) > 1000; E: SELECT rank, AVG(salary) FROM people GROUP BY rank WHERE AVG(salary) > 1000;
- 设有职工基本表:EMP(ENO,ENAME,AGE,SEX,SALARY),其属性分别表示职工号、姓名、年龄、性别、工资。为每个工资低于1000元的女职工加薪200元,补充这个操作的SQL语句。UPDATE?EMP() A: SET?SALARY=SALARY-200 B: SET?SALARY=SALARY+200 C: WHERE?SALARY>1000?AND?SEX=女; D: WHERE?SALARY<1000?AND?SEX=女;
- 以下不属于网络数据库SQL Server中常见的版本的是() A: SQL Server 2000企业版 B: SQL Server 2000标准版 C: SQL Server 2000增强版 D: SQL Server 2000开发版