QuestionQ94

VerifiedUsing Single-Row and Aggregate Functions

The CUSTOMERS table includes a CUST_LAST_NAME column with the VARCHAR2 data type.

The table contains two rows with CUST_LAST_NAME values of Anderson and Ausson.

Which query returns Oder for the first row and Aus for the second row?

Explanation

Two nested REPLACE operations can remove the literal substring son and then substitute An with O. The resulting values are Oder from Anderson and Aus from Ausson.

Community Discussion

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