电子文档交易市场
安卓APP | ios版本
电子文档交易市场
安卓APP | ios版本

CUUG内部OCP题库解析-071-文档6

10页
  • 卖家[上传人]:j***
  • 文档编号:93170014
  • 上传时间:2019-07-17
  • 文档格式:DOCX
  • 文档大小:717.35KB
  • / 10 举报 版权申诉 马上下载
  • 文本预览
  • 下载提示
  • 常见问题
    • 1、CUUG内部OCP题库解析-071-文档6题库新特点:oracle 11g版本的ocp认证考试题库,来自cuug整理,考试题大部分都在这里能找到,如果想考ocp认证可以参考这些文档。(071-sql部分考试)下面的题是(071考试-第6个文档)里的一些考题。其他题找相关文档,或者在群里讨论101-5267-481Administrator CUUG内部OCP题库解析-052-文档2 7/17/19QUESTION 56Which two statements are true about sequences created in a single instance database? (Choose two.)A. When the MAXVALUElimit for the sequence is reached, you can increase the MAXVALUElimit by using the ALTERSEQUENCEstatement.B. DELETE would remove a sequence from the database.C. The number

      2、s generated by a sequence can be used only for one table.D. CURRVALis used to refer to the last sequence number that has been generated.E. When a database instance shuts down abnormally, the sequence numbers that have b cached but not used would be available once again when the database instance is restarted.Correct Answer: ADSection: (none)Explanationhttps:/ 57View the exhibit and examine the structure of the CUSTOMERStable.Which two tasks would require subqueries or joins to e executed in a si

      3、ngle statement?A. finding the number of customers, in each city, whose credit limit is more than the average credit limit of all the customersB. finding the average credit limit of male custo ers residing in Tokyoor Sydney C. listing of customers who do not have a credit limit and were born before 1980 D. finding the number of customers, in each city, whos marital status is married.E. listing of those customers, whose credit limit is the same as the credit limit of customers residing in the city

      4、 Tokyo.Correct Answer: AE 解析:select country_id,count(cust_id) select CUST_ID,CUST_FIRST_NAME,CUST_LAST_NAME from customers from customerswhere cust_credit_limit where cust_credit_limit in (select cust_credit_limit from customers where cust_city=Tokyo);(select avg(cust_credit_limit) from customers)group by country_id;QUESTION 58Which statement is true about transactions?A. A set of Data Manipulation Language (DML) statements executed in a sequence ending with a SAVEPOINT forms a single transactio

      5、n. B. Each Data Definition Language (DDL) statement executed forms a single transaction.C. A set of DDL statements executed in a sequence ending with a COMMIT forms a single transaction.D. A combination of DDL and DML statements executed in a sequence end g with a COMMIT forms a single transaction.Correct Answer: B Section: (none) Explanation:每个DDL语句都是一个事务,因为DDL语句执行后自动提交。如果A答案SAVEPOINT改为COMMIT或者ROLLBACK那么就是正确的。Explanation/Reference: References:https:/ 59View the exhibit and examine the structure

      6、 in ORDERS and ORDER_ITEMS tab es. You need to create a view that displays the ORDER_ID, ORDER_DATE, and the total number of items in each order.Which CREATE VIEW statement would create the views successfully?A . AS SELECT o.order_id, o.order_date, COUNT (i.line_item_id) FROM orders o JOIN order_items iON (o.order_id = i.order_id)GROUP BY o.order_id, o.order_date;B. CREATE OR REPLACE VIEW ord_vu (order_id, order_date) AS SELECT o.order_id, o.order_date, COUNT (i.line_item_id) NO OF ITEMSFROM ord

      7、ers o JOIN order_items i ON (o.order_id = i.order_id) GROUP BY o.order_id, o.order_date;C. CREATE OR REPLACE VIEW ord_vu AS SELECT o.order_id, o.order_date, COUNT (i.line_item_id) NO OF ITEMSFROM orders o JOIN order_items i ON (o.order_id = i.order_id) GROUP BY o.order_id, o.order_date;D. CREATE OR REPLACE VIEW ord_vu AS SELECT o.order_id, o.order_date, COUNT (i.line_item_id) | NO OF ITEMSFROM orders o JOIN order_it ms i ON (o.order_id = i.order_id) GROUP BY o.order_id, o.order_date WHITH CHECK

      8、OPTION;Correct Answer: CSection: (none) Explanation:A答案会报错:ORA-00998: 必须使用列别名命名 表达式,缺少一个别名;B答案视图缺少一个列名,如果加上NO OF ITEMS就是 正确的。Explanation/Reference:QUESTION 60Which statement is true about an inner join specified in the WHERE clause of a query?A. It must have primary-key and foreign-key constraints defined on the columns used in the join condition.B. It requires the column names to be the same in al tables used for the join conditions.C. It is applicable for equijoin and nonequijoin conditions.D.

      9、 It is applicable for only equijoin conditions.Correct Answer: CSection: (none) Explanation:left join(左联接) 返回包括左表中的所有记录和右表中联结字段相等的记录 right join(右联接) 返回包括右表中的所有记录和左表中联结字段相等的记录 inner join(等值连接) 只返回两个表中联结字段相等的行,就是等连接Explanation/Reference:QUESTION 61Which statement is true regarding the INTERSECToperator?A. The names of columns in all SELECTstatements must be identical. B. It ignores NULLvalues.C. Reversing the order of the intersected tables alters the result.(颠倒表的 序会影响结果)D. The number of columns and data types must be identical for all SELECTstatements in the query.(查询中所有SELECT语句的列数和数据类型必须相同。) Correct Answer: D Section: (none) Explanation:和 UNION 指令类似,INTERSECT 也是对两个 SQL 语句所产生

      《CUUG内部OCP题库解析-071-文档6》由会员j***分享,可在线阅读,更多相关《CUUG内部OCP题库解析-071-文档6》请在金锄头文库上搜索。

      点击阅读更多内容
    最新标签
    监控施工 信息化课堂中的合作学习结业作业七年级语文 发车时刻表 长途客运 入党志愿书填写模板精品 庆祝建党101周年多体裁诗歌朗诵素材汇编10篇唯一微庆祝 智能家居系统本科论文 心得感悟 雁楠中学 20230513224122 2022 公安主题党日 部编版四年级第三单元综合性学习课件 机关事务中心2022年全面依法治区工作总结及来年工作安排 入党积极分子自我推荐 世界水日ppt 关于构建更高水平的全民健身公共服务体系的意见 空气单元分析 哈里德课件 2022年乡村振兴驻村工作计划 空气教材分析 五年级下册科学教材分析 退役军人事务局季度工作总结 集装箱房合同 2021年财务报表 2022年继续教育公需课 2022年公需课 2022年日历每月一张 名词性从句在写作中的应用 局域网技术与局域网组建 施工网格 薪资体系 运维实施方案 硫酸安全技术 柔韧训练 既有居住建筑节能改造技术规程 建筑工地疫情防控 大型工程技术风险 磷酸二氢钾 2022年小学三年级语文下册教学总结例文 少儿美术-小花 2022年环保倡议书模板六篇 2022年监理辞职报告精选 2022年畅想未来记叙文精品 企业信息化建设与管理课程实验指导书范本 草房子读后感-第1篇 小数乘整数教学PPT课件人教版五年级数学上册 2022年教师个人工作计划范本-工作计划 国学小名士经典诵读电视大赛观后感诵读经典传承美德 医疗质量管理制度 2
    关于金锄头网 - 版权申诉 - 免责声明 - 诚邀英才 - 联系我们
    手机版 | 川公网安备 51140202000112号 | 经营许可证(蜀ICP备13022795号)
    ©2008-2016 by Sichuan Goldhoe Inc. All Rights Reserved.