QuestionQ111

VerifiedRestricting and sorting data

Examine the data in the CUST_NAME column of the CUSTOMERS table:

Question Image

You need to display the CUST_NAME values whose last name begins with Mc or MC.

Which two WHERE clauses produce the required result?

Choose two
Explanation

INSTR and SUBSTR isolate the last-name portion after the space. INITCAP normalizes that portion so its first two characters are Mc, while UPPER normalizes both the extracted last name and the pattern to uppercase. Each method therefore matches surnames beginning with either Mc or MC.

Learn more

Community Discussion

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