北京优技教育科技有限公司

Oracle认证 OCP认证 OCM认证

当前位置: 优技教育 >> ocp考试 >

ocp考试题库下载:11g-v9.02-051-123题

ocp考试题库下载:11g-v9.02-051-123题

来源:优技教育    更新时间:2016/8/8 16:34:13    阅读次数:838

ocp考试题库下载:11g-v9.02-051-123题,完整题库请点击这里联系老师咨询了解

123. View the Exhibits and examine the structures of the PRODUCTS, SALES, and CUSTOMERS

tables.

You need to generate a report that gives details of the customer's last name, name of the product, and

the quantity sold for all customers in ' Tokyo' .

Which two queries give the required result? (Choose two.)

A. SELECT c.cust_last_name,p.prod_name, s.quantity_sold

FROM sales s JOIN products p

USING(prod_id)

JOIN customers c

USING(cust_id)

WHERE c.cust_city='Tokyo';

B. SELECT c.cust_last_name, p.prod_name, s.quantity_sold

FROM products p JOIN sales s JOIN customers c

ON(p.prod_id=s.prod_id)

ON(s.cust_id=c.cust_id)

WHERE c.cust_city='Tokyo';

C. SELECT c.cust_last_name, p.prod_name, s.quantity_sold

FROM products p JOIN sales s

ON(p.prod_id=s.prod_id)

JOIN customers c

ON(s.cust_id=c.cust_id)

AND c.cust_city='Tokyo';

D. SELECT c.cust_id,c.cust_last_name,p.prod_id, p.prod_name, s.quantity_sold

FROM products p JOIN sales s

USING(prod_id)

JOIN customers c

USING(cust_id)

WHERE c.cust_city='Tokyo';

Answer: AC

试题解析:

B语法错误

D中p.prod_id不应该跟限定的表别名。

不要对USING子句中使用的列加以限定。

USING子句中引用的那些列不能在SQL 语句的任何位置使用限定词(表名或别名)。

如果在SQL 语句的另一个位置使用了同一列,则不要对其设置别名。

OCA认证
OCP费用
OCP教程
OCP考试
OCM费用
OCM教程
OCM考试
ORACLE授权认证机构CUUG
CUUG与ORACLE合作15年,是ORACLE金牌合作伙伴,连续多年处于行业领先;
CUUG与工信部人才交流中心合作,是工信人才指定的PostgreSQL数据库培训合作伙伴;
CUUG与阿里云、腾讯云、人大金仓、奥星贝斯等众多数据库厂商合作,开设数据库认证与培训课程;
CUUG与企业合作提供人才输送、定制化培训、技术支持服务;

报名入口 点击进入

北京优技教育科技有限公司

联系电话:010-59426307

课程咨询:010-59426319

联系地址:海淀区紫竹院路88号