QuestionQ200

VerifiedRestricting and sorting data

Review the description of the CUSTOMERS table:

Question Image

Which two SELECT statements will produce these results?

Question Image

Choose two
Explanation

The % character in a LIKE pattern matches zero or more characters, and character case is significant. Therefore, LIKE '%a%' matches the rows containing lowercase a, and LIKE 'Ma%' matches values that start with Ma; both return Mandy and Mary. An asterisk (*) is not a LIKE wildcard, and converting values with UPPER would also match the uppercase names beginning with MA.

Learn more

Community Discussion

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