网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

SQL中,“SALARY IN(1000,2000)”的语义是()。

A.SALARY<=2000 AND SALARY>=1000

B.SALARY<2000 AND SALARY>1000

C.SALARY=1000 AND SALARY=2000

D.SALARY=1000 OR SALARY=2000


参考答案和解析
D
更多 “SQL中,“SALARY IN(1000,2000)”的语义是()。A.SALARY<=2000 AND SALARY>=1000B.SALARY<2000 AND SALARY>1000C.SALARY=1000 AND SALARY=2000D.SALARY=1000 OR SALARY=2000” 相关考题
考题 如果对关系emp(eno,ename,salary)成功执行下面的SQL语句: CREATE CLUSTER INDEX name_index ON emp(salary) 对此结果的正确描述是A.在emp表上按salary升序创建了一个聚簇索引B.在emp表上按salary降序创建了一个聚簇索引C.在emp表上按salary升序创建了一个唯一索引D.在emp表上按salary降序创建了一个唯一索引

考题 建立一个视图salary,该视图包括了系号和(该系的)平均工资两个字段,正确的 SQL语句是A.CREATE VIEW salary AS系号,AVG(工资)AS平均工资FROM教师; GROUP BY系号B.CREATE VIEW salary AS SELECT系号,AVG(工资)AS平均工资FROM教师; GROUP BY系名C.CREATE VIEW salary SELECT系号,AVG(工资)AS平均工资FROM教师; GROUP BY系号D.CREATE VIEW salary AS SELECT系号,AVG(工资)AS平均工资FROM教师; GROUP BY系号

考题 ( 30 )如果对关系 emp ( eno , ename , salray )成功执行下面的 SQL 语句:CREATE CLUSTER INDEX name_index ON emp ( salary )对此结果的正确描述是A) 在 emp 表上按 salary 升序创建了一个唯一索引B) 在 emp 表上按 salary 降序创建了一个唯一索引C) 在 emp 表上按 salary 升序创建了一个聚簇索引D) 在 emp 表上按 salary 降序创建了一个聚簇索引

考题 关于SQL语句执行过程,下面说法错误的是()。 A.SQL在执行过程中,首先需要语法和语义检查B.SQL的解析可以分为硬解析、软解析、软软解析C.使用绑定变量能大大降低硬解析次数D.SQL执行完之后,执行计划不会再改变

考题 Evaluate the SQL statement:SELECT LPAD (salary,10,*)FROM EMPWHERE EMP _ ID = 1001;If the employee with the EMP_ID 1001 has a salary of 17000, what is displayed?() A. 17000.00B. 17000*****C. ****170.00D. **17000.00E. an error statement

考题 Evaluate the SQL statement:What is the result of the statement?() A. The statement produces an error at line 1.B. The statement produces an error at line 3.C. The statement produces an error at line 6.D. The statement returns the employee name, salary, department ID, and maximum salary earned in the department of the employee for all departments that pay less salary then the maximum salary paid in the company.E. The statement returns the employee name, salary, department ID, and maximum salary earned in the department of the employee for all employees who earn less than the maximum salary in their department.

考题 删除视图salary的命令是 A) DROP salary VIEW B)DROP VIEW salary C)DELETE salary VIEW D)DELETE salary

考题 ● 设有职工表emp(Eno,Ename,Sex,Age)(Eno为职工号,Ename为职工姓名,Sex为性别,Age为年龄)和salary(Eno,Hour,Month,Wage)(Hour为工作时长为多少小时,Month表示几月份,Wage为薪水),建立一个视图V-Salary(Eno,Ename,Hour,Month,Wage),并按Eno升序排序的SQL语句为:(1)CREATE ( )AS SELECT emp.Eno,emp.Ename ,salary.Hour,salary.Month,salary.WageFROM emp, salaryWHERE emp.Eno=salary.EnoORDER BY ENO在此视图上查均月工资在3000以上的职工工资情况的SQL语句为:SELECT Eno,Ename,AVG(Wage)FROM V-SalaryGROUP BY ( )HAVING AVG(Wage)3000( )A. CREATE TABLE V-Salary(emp.Eno,emp.Ename,salary.Hour,salary.Month,salary.Wage)B. CREATE VIEW V-Salary(Eno,Ename,Hour,Month,Wage)C. CREATE TABLE V-Salary(Eno,Ename,Hour,Month,Wage)D. CREATE INDEX V-Salary(Eno,Ename,Hour,Month,Wage)( )A. Eno B.EnameC.Month D.Wage

考题 建立一个视图salary,该视图包括了系号和(该系的)平钧工资两个字段,正确的是SQL语句是A)CREATE VIEW salaryAS系号,AVG(工资)AS平均工资FROM教师;GROUP BY系号B) CREATE VIEW salary AS SELECT系号,AVG(工资)AS平均工资FROM教师;GROUP BY系名C) CREATE VIEW salary SELECT系号,AVG(工资)AS平均工资FROM教师;GROUP BY系号D)CREATE VIEW salary AS SELECT系号,AVG(工资)As平均工资FROM教师;GROUP BY系号

考题 如果对关系S(number, name, score)成功执行下列SQL语句:CREATE CLUSTER INDEX name_ index ON S(score)对此结果的描述中,正确的是( )。A.在S表上按salary升序创建了一个唯一索引B.在S表上按salary降序创建了一个唯一索引C.在S表上按salary升序创建了一个聚簇索引D.在S表上按salary降序创建了一个聚簇索引

考题 SQL中,SALARYIN(1000,2000)的语义是______。A.SALARY≤2000 AND SALARY≥1000B.SALARY<2000 AND SALARY>1000C.SALARY=1000 AND SALARY=2000D.SALARY=1000 OR SALARY=2000

考题 (33)如果对关系 emp(eno, ename, salary)成功执行下面的SQL语句:CREATE CLUSTER INDEX name_index ON emp(salary)其结果是A)在 emp表上按sal娜升序创建了一个聚簇索引B)在 emp表上按salary降序创建了一个聚簇索引C)在 emp表上按salary升序创建了一个唯一索引D)在 emp表上按salary降序创建了一个唯一索引

考题 500~750千伏超高压输电的传输距离是()千米,而特高压交直流输电可以将传输距离提升到()千米。A、700~1000,2000~5000B、700~1000,2000~4000C、500~1000,2000~4000D、500~1000,2000~5000

考题 SQL中,SALARYIN(1000,2000)的语义是()A、SALARY≤2000ANDSALARY≥1000B、SALARY<2000ANDSALARY>1000C、SALARY=1000ANDSALARY=2000D、SALARY=1000ORSALARY=2000

考题 Application A is designed to execute the following SQL statements within a single Unit of Work (UOW). UPDATE employee SET salary = salary * 1.1 WHERE empno='000010' UPDATE department SET deptname = 'NEW dept' WHERE deptno='A00'Application B is designed to execute the following SQL statements within a single Unit of Work (UOW). UPDATE department SET deptname = 'OLD DEPT' WHERE deptno='A00' UPDATE employee SET salary = salary * 0.5 WHERE empno='000010' Application A and application B execute their first SQL statement at the same time. When application A and application B try to execute their second SQL statement, a deadlock occurs. What will happen?() A、The database manager will rollback the transaction in both applications.B、The database manager will rollback the transaction in one of the two applications.C、Application B will successfully update the EMPLOYEE and DEPARTMENT tables; Application A will be placed in a lock wait state.D、Application A will successfully update the EMPLOYEE and DEPARTMENT tables; Application B will terminate when the lock timeout value is reached.

考题 Evaluate the SQL statement: SELECT LPAD(salary,10,*) FROM EMP WHERE EMP_ID = 1001; If the employee with the EMP_ID 1001 has a salary of 17000, what is displayed?()A、17000.00B、17000*****C、****170.00D、**17000.00E、an error statement

考题 Evaluate these two SQL statements: SELECT last_name, salary , hire_date FROM EMPLOYEES ORDER BY salary DESC; SELECT last_name, salary, hire_date FROM EMPLOYEES ORDER BY 2 DESC; What is true about them?()A、The two statements produce identical results.B、The second statement returns a syntax error.C、There is no need to specify DESC because the results are sorted in descending order by default.D、The two statements can be made to produce identical results by adding a column alias for the salary column in the second SQL statement.

考题 Evaluate the SQL statement: SELECT LPAD (salary,10,*) FROM EMP WHERE EMP _ ID = 1001; If the employee with the EMP_ID 1001 has a salary of 17000, what is displayed?()A、17000.00B、17000*****C、****170.00D、**17000.00E、an error statement

考题 单选题SQL中,SALARYIN(1000,2000)的语义是()A SALARY≤2000ANDSALARY≥1000B SALARY<2000ANDSALARY>1000C SALARY=1000ANDSALARY=2000D SALARY=1000ORSALARY=2000

考题 单选题500~750千伏超高压输电的传输距离是()千米,而特高压交直流输电可以将传输距离提升到()千米。A 700~1000,2000~5000B 700~1000,2000~4000C 500~1000,2000~4000D 500~1000,2000~5000

考题 单选题Evaluate the SQL statement: SELECT LPAD(salary,10,*) FROM EMP WHERE EMP_ID = 1001; If the employee with the EMP_ID 1001 has a salary of 17000, what is displayed?()A 17000.00B 17000*****C ****170.00D **17000.00E an error statement

考题 单选题Examine the structures of the EMPLOYEES and TAX tables. EMPLOYEES EMPLOYEE_ID NUMBER NOT NULL, Primary Key EMP_NAME VARCHAR2 (30) JOB_ID VARCHAR2 (20) SALARY NUMBER References MGR_ID NUMBER EMPLOYEE_ID column DEPARTMENT_ID NUMBER Foreign key to DEPARTMENT _ID column of the DEPARTMENT table TAX MIN_SALARY NUMBER MAX_SALARY NUMBER TAX_PERCENT NUMBER Percentage tax for given salary range You need to find the percentage tax applicable for each employee. Which SQL statement would you use?()A SELECT employee_id, salary, tax_percent FROM employees e, tax t WHERE e.salary BETWEEN t.min _ salary AND t.max_salaryB SELECT employee_id, salary, tax_percent FROM employees e, tax t WHERE e.salary t.min_salary, tax_percentC SELECT employee_id, salary, tax_percent FROM employees e, tax t WHERE MIN(e.salary) = t.min_salary AND MAX(e.salary) = t.max_salaryD You cannot find the information because there is no common column between the two tables.

考题 单选题如果对关系emp(eno,ename,salary)成功执行下面的SQL语句:CREATECLUSTERINDEXname_indexONemp(salary),其结果是()A 在emp表上按salary升序创建了一个聚簇索引B 在emp表上按salary降序创建了一个聚簇索引C 在emp表上按salary升序创建了一个唯一索引D 在emp表上按salary降序创建了一个唯一索引

考题 单选题Evaluate the SQL statement: SELECT LPAD(salary,10,*) FROM EMP WHERE EMP_ID = 1001; If the employee with the EMP_ID 1001 has a salary of 17000, what is displayed?()A 17000.00B 17000*****C ****170.00D **17000.00E an error statement

考题 单选题Which SQL statement generates the alias Annual Salary for the calculated column SALARY*12?()A SELECT ename, salary*12 ‘Annual Salary’ FROM employees;B SELECT ename, salary*12 “Annual Salary” FROM employees;C SELECT ename, salary*12 AS Annual Salary FROM employees;D SELECT ename, salary*12 AS INITCAP(“ANNUAL SALARY”) FROM employees

考题 单选题Evaluate these two SQL statements: SELECT last_name, salary , hire_date FROM EMPLOYEES ORDER BY salary DESC; SELECT last_name, salary , hire_date FROM EMPLOYEESORDER BY 2 DESC; What is true about them?()A The two statements produce identical results.B The second statement returns a syntax error.C There is no need to specify DESC because the results are sorted in descending order by default.D The two statements can be made to produce identical results by adding a column alias for the salary column in the second SQL statement.

考题 单选题Evaluate these two SQL statements: SELECT last_name, salary , hire_date FROM EMPLOYEES ORDER BY salary DESC; SELECT last_name, salary , hire_date FROM EMPLOYEES ORDER BY 2 DESC; What is true about them?()A The two statements produce identical results.B The second statement returns a syntax error.C There is no need to specify DESC because the results are sorted in descending order by default.D The two statements can be made to produce identical results by adding a column alias for the salary column in the second SQL statement.

考题 单选题Evaluate the SQL statement: SELECT LPAD (salary,10,*) FROM EMP WHERE EMP _ ID = 1001; If the employee with the EMP_ID 1001 has a salary of 17000, what is displayed?()A 17000.00B 17000*****C ****170.00D **17000.00E an error statement