您的位置:首页 > 产品设计 > UI/UE

OCP 1Z0 051 QUESTION NO: 29

2014-06-03 11:54 465 查看
QUESTION NO: 29

View the Exhibit and examine the structure of the CUSTOMERS table.



NEW_CUSTOMERS is a new table with the columns CUST_ID, CUST_NAME and CUST_CITY

that have the same data types and size as the corresponding columns in the CUSTOMERS table.

Evaluate the following INSERT statement:

INSERT INTO new_customers (cust_id, cust_name, cust_city)

VALUES(SELECT cust_id,cust_first_name' || 'cust_last_name,cust_city

FROM customers

WHERE cust_id > 23004);

The INSERT statement fails when executed. What could be the reason?

A. The VALUES clause cannot be used in an INSERT with a subquery

B. The total number of columns in the NEW_CUSTOMERS table does not match the total number

of columns in the CUSTOMERS table

C. The WHERE clause cannot be used in a sub query embedded in an INSERT statement

D. Column names in the NEW_CUSTOMERS and CUSTOMERS tables do not match

Answer: A

与正式题库159重复

/article/8013365.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: