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
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
相关文章推荐
- OCP 1Z0 051 QUESTION NO: 10
- OCP 1Z0 051 QUESTION NO: 21
- OCP 1Z0 051 QUESTION NO: 36
- OCP 1Z0 051 QUESTION NO: 49
- OCP 1Z0 051 QUESTION NO: 60
- OCP 1Z0 051 QUESTION NO: 11
- OCP 1Z0 051 QUESTION NO: 22
- OCP 1Z0 051 QUESTION NO: 37
- OCP 1Z0 051 QUESTION NO: 50
- OCP 1Z0 051 QUESTION NO: 61
- OCP 1Z0 051 QUESTION NO: 23
- OCP 1Z0 051 QUESTION NO: 38
- OCP 1Z0 051 QUESTION NO: 51
- OCP 1Z0 051 QUESTION NO: 24
- OCP 1Z0 051 QUESTION NO: 39
- OCP 1Z0 051 QUESTION NO: 52
- OCP 1Z0 051 QUESTION NO: 12
- OCP 1Z0 051 QUESTION NO: 25
- OCP 1Z0 051 QUESTION NO: 40
- OCP 1Z0 051 QUESTION NO: 53