nerdexam
Oracle

1Z0-071 · Question #224

View the Exhibit and examine the structure of the CUSTOMERS table. In the CUSTOMERS table, the CUST_LAST_NAME column contains the values 'Anderson' and 'Ausson'. You issue the following query: SQL>…

The correct answer is B. an error because the TRIM function specified is not valid. See the full explanation below for the reasoning.

Question

View the Exhibit and examine the structure of the CUSTOMERS table. In the CUSTOMERS table, the CUST_LAST_NAME column contains the values 'Anderson' and 'Ausson'. You issue the following query:

SQL> SELECT LOWER(REPLACE(TRIM('son' FROM cust_last_name),'An','O')) FROM CUSTOMERS WHERE LOWER(cust_last_name) LIKE 'a%n'; What would be the outcome?

Options

  • A'Oder' and 'Aus'
  • Ban error because the TRIM function specified is not valid
  • Can error because the LOWER function specified is not valid
  • Dan error because the REPLACE function specified is not valid

How the community answered

(34 responses)
  • A
    3% (1)
  • B
    71% (24)
  • C
    9% (3)
  • D
    18% (6)

Community Discussion

No community discussion yet for this question.

Full 1Z0-071 Practice