exam questions

Exam 1z0-051 All Questions

View all questions & answers for the 1z0-051 exam

Exam 1z0-051 topic 2 question 38 discussion

Actual exam question from Oracle's 1z0-051
Question #: 38
Topic #: 2
[All 1z0-051 Questions]

The CUSTOMERS table has these columns:

CUSTOMER_ID NUMBER(4) NOT NULL -
CUSTOMER_NAME VARCHAR2(100) NOT NULL
CUSTOMER_ADDRESS VARCHAR2(150)
CUSTOMER_PHONE VARCHAR2(20)
You need to produce output that states "Dear Customer customer_name, ".
The customer_name data values come from the CUSTOMER_NAME column in the CUSTOMERS table.
Which statement produces this output?

  • A. SELECT dear customer, customer_name, FROM customers;
  • B. SELECT "Dear Customer", customer_name || ',' FROM customers;
  • C. SELECT 'Dear Customer ' || customer_name ',' FROM customers;
  • D. SELECT 'Dear Customer ' || customer_name || ',' FROM customers;
  • E. SELECT "Dear Customer " || customer_name || "," FROM customers;
  • F. SELECT 'Dear Customer ' || customer_name || ',' || FROM customers;
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Concatenation operator to create a resultant column that is a character expression.
Incorrect answer:

Ano such dear customer column -

Binvalid syntax -

Cinvalid syntax -

Einvalid syntax -

Finvalid syntax -
Refer: Introduction to Oracle9i: SQL, Oracle University Study Guide, 1-18

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...