手机扫码关注微信
随时随地刷题
试卷介绍
试卷预览
- 101A table named SALES contains a record for every sales transaction a company processes. A user wishes to see the number of transactions that are made by each salesman. Which SQL statement will produce the desired results、
A.SELECT name, COUNT(*) AS transactions FROM sales
B.SELECT name, COUNT(DISTINCT name) AS transactions FROM sales
C.SELECT name, COUNT(*) AS transactions FROM sales GROUP BY name
D.SELECT DISTINCT name, COUNT(*) AS transactions FROM sales GROUP BY transactions
开始考试练习点击查看答案 - 102Which statement about roll back operations is correct、
A.When a ROLLBACK statement is executed, all locks held by the terminating transaction are released.
B.When a ROLLBACK TO SAVEPOINT statement is executed, all locks acquired up to the savepoint are released.
C.When a ROLLBACK TO SAVEPOINT statement is executed, all locks acquired after the savepoint are release
D.D. When a ROLLBACK statement is executed, all locks acquired for open cursors that were declared WITH HOLD, are held.
开始考试练习点击查看答案 - 103When a COMMIT statement is executed, what happens、
A.All locks held on the database are automatically released.
B.Data stored in global temporary tables is automatically deleted.
C.Open cursors defined WITH HOLD are closed, but their data is retaine
D.D. The current transaction is terminated and a new transaction boundary is started.
开始考试练习点击查看答案 - 104Which SQL statement would be used to retrieve only salaries that are greater than $100,000.00 from a table named EMPLOYEE、
A.SELECT * FROM employee WHERE salary < 100000
B.SELECT salary FROM employee WHERE salary > 100000
C.SELECT salary FROM employee WHERE salary > 100,000.00
D.SELECT * FROM employee WHERE salary GREATER THAN 100000
开始考试练习点击查看答案 - 105Which SQL statement should be used to retrieve the minimum and maximum salaries (SALARY) for each job code (JOB), sorted by job code, from a table named EMPLOYEE、
A.SELECT job, MIN(salary), MAX(salary) FROM employee GROUP BY job ORDER BY job;
B.SELECT job, MIN(salary), MAX(salary) FROM employee ORDER BY job;
C.SELECT job, MIN(salary), MAX(salary) FROM employee GROUP BY SALARY ORDER BY job;
D.SELECT job, MIN(salary), MAX(salary) FROM employee GROUP BY MIN(salary), MAX(salary)ORDER BY job;
开始考试练习点击查看答案 - 106If a table named MY_TAB contains 100 rows and the following statement is executed: UPDATE (SELECT * FROM my_tab ORDER BY col1 DESC FETCH FIRST 10 ROWS ONLY) AS temp SET col3 = 99; How many rows will be updated、
A.0
B.1
C.10
D.99
开始考试练习点击查看答案 - 107An SQL function named DEPT_INFO was created as follows: CREATE FUNCTION dept_info() RETURNS TABLE(dept_id INTEGER,dept_name VARCHAR(20)) LANGUAGE SQL READS SQL DATA BEGIN ATOMIC RETURN SELECT deptno,deptname FROM department WHERE deptname LIKE 'S%'; END What is the correct way to use this function in a query、
A.SELECT dept_info(dept_id, dept_name)
B.SELECT dept_id, dept_name FROM dept_info()
C.SELECT TABLE dept_id, dept_name FROM dept_info()
D.SELECT dept_id, dept_name FROM TABLE(dept_info()) AS results
开始考试练习点击查看答案 - 108Which type of stored procedure is not associated with an external application program、
A.A Java stored procedure.
B.A REXX stored procedure.
C.A native SQL stored procedure.
D.An external SQL stored procedur
开始考试练习点击查看答案 - 109Which SQL statement will retrieve the department number (WORKDEPT) and average departmentalsalary (SALARY) for all departments in a table named EMPLOYEE and arrange the result set inascending order by average departmental salary、
A.SELECT workdept, AVG(salary) FROM employee ORDER BY workdept GROUP BY 2
B.SELECT workdept, AVG(salary) FROM employee ORDER BY workdept ARRANGE BY 2
C.SELECT workdept, AVERAGE(salary) FROM employee GROUP BY workdept ORDER BY 2
D.SELECT workdept, AVG(salary) FROM employee GROUP BY workdept ORDER BY 2
开始考试练习点击查看答案 - 110Which statement about system-period temporal tables is true、
A.They store user-based period information.
B.They do not have a separate history table.
C.They can be queried without a time period specification.
D.They manage data based on time criteria specified by users or applications.
开始考试练习点击查看答案
最新试卷
高中教育高考语文(重庆卷)2013年普通高等学校招生全国统一考试
类别:学历类其它高中教育高考语文高考语文第一轮复习测试题9
类别:学历类其它高中教育高考语文高考语文第一轮复习测试题8
类别:学历类其它高中教育高考语文高考语文第一轮复习测试题6
类别:学历类其它高中教育高考语文高考语文第一轮复习测试题4
类别:学历类其它高中教育高考语文高考语文第一轮复习测试题3
类别:学历类其它高中教育高考语文高考语文第一轮复习测试题2
类别:学历类其它高中教育高考语文高考语文第一轮复习测试题1
类别:学历类其它高中教育高考语文高中语文课课练(5)
类别:学历类其它高中教育高考语文高中语文总复习 经典易错题会诊与命题角度
类别:学历类其它