SQL · Question 17 · Easy

In a LIKE pattern, which wildcard matches exactly one character?

  1. % (percent)
  2. _ (underscore)
  3. * (asterisk)
  4. ? (question mark)
Answer and explanation

Answer: B. _ (underscore)

Explanation: In SQL, _ matches exactly one character and % matches any sequence of zero or more characters. * and ? are file-system globbing wildcards, not standard LIKE wildcards.

Previous: Which keyword is written after SELECT to remove duplicate rows from a query's… · Next: If ORDER BY is used without ASC or DESC, in which order are the rows sorted?

Practise sql

Try a fresh set of sql questions with an explanation after every answer, free and without signing up: SQL practice. Or sit a full placement mock test.

More sql questions

More technical & programming practice

Operating Systems · Computer Networks · Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming · Java

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge