【OCP-12c】CUUG 071题库考试原题及答案解析(17)
17、(7-11) choose two
View the Exhibit and examine the structure of ORDER_ITEMS and ORDERS tables.
You need to remove from the ORDER_ITEMS table those rows that have an order status of 0 or 1 in
the ORDERS table.
Which two DELETE statements are valid? (Choose two.)
A) DELETE
FROM order_items
WHERE order_id IN (SELECT order_id
FROM orders
WHERE order_status in (0,1));
B) DELETE *
FROM order_items
WHERE order_id IN (SELECT order_id
FROM orders
WHERE order_status IN (0,1));
C) DELETE
FROM (SELECT * FROM order_items i,orders o
WHERE i.order_id = o.order id AND order_status IN (0,1));
D) DELETE FROM order_items i
WHERE order_id = (SELECT order_id FROM orders o
WHERE i.order_id = o.order_id AND order_status IN (0,1));
Answer:AC
(解析:B 和 C 语法不对,可以实验,都会报错)
【OCP-12c】CUUG 071题库考试原题及答案解析(17)的更多相关文章
- 【OCP认证12c题库】CUUG 071题库考试原题及答案(28)
		
28.choose the best answer Evaluate the following SQL statement: SQL> SELECT promo_id, promo_categ ...
 - 【OCP认证12c题库】CUUG 071题库考试原题及答案(27)
		
27.choose two The SQL statements executed in a user session are as follows: SQL> CREATE TABLE pro ...
 - 【OCP认证12c题库】CUUG 071题库考试原题及答案(26)
		
26.choose two Examine the structure of the PRODUCTS table. Which two statements are true? A) EXPIRY_ ...
 - 【OCP认证12c题库】CUUG 071题库考试原题及答案(25)
		
25. choose the best answer Evaluate the following SQL statement: ALTER TABLE hr.emp SET UNUSED (mgr_ ...
 - 【OCP-12c】CUUG 071题库考试原题及答案解析(24)
		
24. choose the best answer In the EMPLOYEES table there are 1000 rows and employees are working in t ...
 - 【OCP-12c】CUUG 071题库考试原题及答案解析(23)
		
23.choose the best answer View the Exhibits and examine PRODUCTS and SALES tables. You issue the fol ...
 - 【OCP-12c】CUUG 071题库考试原题及答案解析(22)
		
5.choose the best answer Evaluate the following CREATE SEQUENCE statement: CREATE SEQUENCE seq1 STAR ...
 - 【OCP-12c】CUUG 071题库考试原题及答案解析(21)
		
3.choose three View the Exhibit and examine the description of SALES and PROMOTIONS tables. You want ...
 - 【OCP-12c】CUUG 071题库考试原题及答案解析(20)
		
20.choose two Examine the description of the EMP_DETAILS table given below: Which two statements are ...
 - 【OCP-12c】CUUG 071题库考试原题及答案解析(19)
		
1.choose the best answerWhat is the primary difference between the relational database (RDB) andobje ...
 
随机推荐
- [jOOQ中文]3. 数据库版本管理工具Flyway
			
https://segmentfault.com/a/1190000010526452 在执行数据库迁移时,我们推荐使用jOOQ与Flyway - 数据库迁移轻松. 在本章中,我们将简单的来使用这两个 ...
 - 通过django创建数据库的方法
			
在models 文件中实现 a. from django.db import models class UserInfo(models.Model): #id列, 自增, 主键 #用户名列, 字符串类 ...
 - java 重定向和转发 的区别
			
重定向方式的含义是第一个页面通知浏览器发送一个新的页面请求.因为,当你使用重定向时,浏览器中所显示的URL会变成新页面的URL, 而当使用转发时,该URL会保持不变. 重定向的速度比转发慢,因为浏览器 ...
 - 埃氏筛法求素数&构造素数表求素数
			
埃氏筛法求素数和构造素数表求素数是一个道理. 首先,列出从2开始的所有自然数,构造一个序列: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 1 ...
 - zk分布式锁-排它锁简单实现-优化版
			
package Lock; import java.util.Collection;import java.util.Collections;import java.util.List;import ...
 - MyBatis 提供的内置类型别名
 - protobuf's extension
			
[protobuf's extension] extension允许第三方扩展协议,开发方需要像下面这样定义: 扩展方需要像下面这样扩展: 使用的时候必须用SetExtension方法: 参考:htt ...
 - gsm
			
libosmocore Osmocom-BB wireshark 拦截一个短信内容
 - 万网上如何将IP和申请的域名绑定
			
万网上如何将IP和申请的域名绑定 在万网上购买了域名后,怎么将它和指定的IP进行绑定呢?下面简单介绍下 工具/原料 中国万网账号 购买的域名 服务器 方法/步骤 百度万网,找到网站后, ...
 - BUG记忆
			
保留两位小数 <fmt:formatNumber value="${list.avgAssessment}" pattern="#.00#"/> ...