Skip to main content
SQL โ€ข LESSON 49

LIKE with Wildcards

How can we search for text containing a pattern anywhere inside a value?

Beginnerโฑ 3 Minutesโญ 620 XP
๐Ÿค” THE QUESTION

How can we search for text containing a pattern anywhere inside a value?

๐Ÿ’ก WHAT IS IT?

Enclosing a pattern between percentage wildcards (%pattern%) matches substring occurrences anywhere within the string.

๐ŸŽฏ WHAT IS IT USED FOR?

Full-text search, surname matching ('%son%'), keyword detection in descriptions.

๐Ÿ’ป EXAMPLE
SELECT name
FROM employees
WHERE name LIKE '%son%';

๐ŸŽฏ Mission Objectives

Practice typing production-grade SQL code for LIKE with Wildcards.

  • โœ“ Substring search
  • โœ“ Surrounding wildcards
  • โœ“ Text scanning
  • โœ“ LIKE matching