手机扫码关注微信
随时随地刷题
试卷介绍
试卷预览
- 31Which command is used to back out a subset of database changes that have been made within a unit of work、
A.COMMIT
B.ROLLBACK
C.COMMIT TO SAVEPOINT
D.ROLLBACK TO SAVEPOINT
开始考试练习点击查看答案 - 32An SQL function designed to convert temperatures from Fahrenheit to Celsius was created as follows: CREATE FUNCTION conv_temp(IN temp_f FLOAT) RETURNS INTEGER NO EXTERNAL ACTOIN SPECIFIC convert_ftoc RETURN INT((temp_f-32)/1.8) How can this function be used to convert average temperature (AVG_TEMP) data stored in a table called CLIMATE_INFO、
A.CALL conv_temp(climate_info.avg_temp);
B.CALL convert_ftoc(climate_info.avg_temp);
C.SELECT conv_temp(avg_temp) FROM climate_info;
D.SELECT convert_ftoc(avg_temp) FROM climate_info;
开始考试练习点击查看答案 - 33If a table named MY_TAB contains 100 rows and the following statement is executed: DELETE FROM (SELECT * FROM my_tab ORDER BY col1 DESC FETCH FIRST 5 ROWS ONLY) AS tmp; What will happen、
A.The last 5 rows in the table will be deleted.
B.The first 5 rows in the table will be deleted.
C.The statement will fail because a subquery cannot be used with a DELETE statement.
D.The statement will fail because a table name was not specified with the DELETE statement.
开始考试练习点击查看答案 - 34Given an EMPLOYEES table and a SALES table, a user wants to produce a list of all employees and their associated revenue, even if no revenue exists. Which SQL statement will produce the desired list、
A.SELECT employees.name, sales.revenue FROM employees INNER JOIN sales ON employees.id =sales.emp_id
B.SELECT employees.name, sales.revenue FROM employees INNER JOIN sales ON sales.emp_id =employees.id
C.SELECT employees.name, sales.revenue FROM sales LEFT OUTER JOIN employees ONemployees.id = sales.emp_id
D.SELECT employees.name, sales.revenue FROM sales RIGHT OUTER JOIN employees ONemployees.id = sales.emp_id
开始考试练习点击查看答案 - 35Which two operations are allowed in the body of an SQL scalar user-defined function、 (Choose two.)
A.CALL statements.
B.External file access.
C.Use of a scratch pa
D.D.COMMIT statements.
E.SQL control statements.
开始考试练习点击查看答案 - 36Which command will delete all rows from a table without generating log records、
A.TRIM
B.DROP
C.DELETE
D.TRUNCATE
开始考试练习点击查看答案 - 37Which function can be used to obtain values from XML documents that are to be inserted into one or more tables、
A.XMLTABLE
B.XMLPARSE
C.XMLEXISTS
D.XMLATTRIBUTES
开始考试练习点击查看答案 - 38User USER1 wants to retrieve records from a table named EMPLOYEE that satisfy at least one of the following criteria:-The employee's hire date (HIREDATE) is before 1999 and the employee's salary (SALARY) is less than $40,000.00 a year. -The employee has attended universityWhich SQL statement will accomplish this、
A.SELECT * FROM employee WHERE (hiredate < '1999-01-01' AND salary < 40000) OR (education ='University')
B.SELECT * FROM employee WHERE (hiredate < '1999-01-01') OR (salary < 40000) OR (education ='University')
C.SELECT * FROM employee WHERE (hiredate < '1999-01-01' OR (salary < 40000 AND (education ='University')
D.SELECT * FROM employee WHERE (hiredate < '1999-01-01' AND salary < 40000 AND (education ='University')
开始考试练习点击查看答案 - 39Which SQL statement will retrieve the employee number (EMPNO), hire date (HIREDATE), and salary (SALARY) for each employee from a table named EMPLOYEE who was hired before 1998 and earns a salary of less than $35,000.00 per year、
A.SELECT empno, hiredate, salary FROM employee FOR hiredate < '1998-01-01' AND salary < 35000
B.SELECT empno, hiredate, salary FROM employee WHERE hiredate < '1998-01-01' AND salary < 35000
C.SELECT empno, hiredate, salary FROM employee WHERE hiredate < '1998-01-01' OR salary <35000
D.SELECT empno, hiredate, salary FROM employee FOR hiredate < '1998-01-01' OR salary < 35000
开始考试练习点击查看答案 - 40If the following result set is desired: LASTNAME FIRSTNAME SALARY JOB -------- --------- ------ --- HAAS CHRISTINE 152750.00 PRES KWAN SALLY 98250.00 MANAGER PULASKI EVA 96170.00 MANAGER THOMPSON MICHAEL 94250.00 MANAGER HENDERSON EILEEN 89750.00 MANAGER Which SQL statement must be executed、
A.SELECT lastname, firstnme, salary, job FROM employee ORDER BY 3 FETCH FIRST 5 ROWSONLY
B.SELECT lastname, firstnme, salary, job FROM employee ORDER BY 3 DESC FETCH FIRST 5ROWS ONLY
C.SELECT lastname, firstnme, salary, job FROM employee ORDER BY 3 FETCH FIRST 5 ROWS
D.SELECT lastname, firstnme, salary, job FROM employee ORDER BY 3 DESC FETCH FIRST 5ROWS
开始考试练习点击查看答案
最新试卷
高中教育高考语文(重庆卷)2013年普通高等学校招生全国统一考试
类别:学历类其它高中教育高考语文高考语文第一轮复习测试题9
类别:学历类其它高中教育高考语文高考语文第一轮复习测试题8
类别:学历类其它高中教育高考语文高考语文第一轮复习测试题6
类别:学历类其它高中教育高考语文高考语文第一轮复习测试题4
类别:学历类其它高中教育高考语文高考语文第一轮复习测试题3
类别:学历类其它高中教育高考语文高考语文第一轮复习测试题2
类别:学历类其它高中教育高考语文高考语文第一轮复习测试题1
类别:学历类其它高中教育高考语文高中语文课课练(5)
类别:学历类其它高中教育高考语文高中语文总复习 经典易错题会诊与命题角度
类别:学历类其它