QuestionQ54

VerifiedRestricting and sorting data

Examine the description of the CUSTOMERS table:

Question Image

You want to display the details of all customers who live in cities that start with the letter D followed by at least two characters.

Which query can be used?

Explanation

LIKE 'D__%' requires D as the first character, two subsequent characters for the two underscores, and permits any remaining characters through %. In Oracle pattern matching, _ matches exactly one character and % matches zero or more characters.

Learn more

Community Discussion

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