QuestionQ188

VerifiedUsing Single-Row Functions to Customize Output

Refer to the exhibit and review the structure of the CUSTOMERS table.

Question Image

In the CUSTOMERS table, the CUST_LAST_NAME column contains the values 'Anderson' and 'Ausson'. You execute the following query:

Question Image

What would be the outcome?

Explanation

Oracle Database TRIM requires its trim character to be a single character. Because 'son' contains three characters, TRIM('son' FROM cust_last_name) is invalid and produces an error; LOWER and REPLACE are valid functions.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!