Skip to content

All-Access: every lesson, no ads. $8.25€8.25US$8.25$4.08US$4.08$2.41US$2.41₹224.91MX$74.91 a month, billed yearly. Free to start. Cancel any time

See plans
All-Access, no ads: every lesson, course and template. $8.25€8.25US$8.25$4.08US$4.08$2.41US$2.41₹224.91MX$74.91 a month. + GST at checkoutSee the plans →

We can use LIKE with wildcards to filter for certain patterns in text. The % wildcard replaces <b>any number of characters</b> in a string of text. To select any dog whose name starts with B, try:

Table dogs

dog_idnamebreedage
1BuddyGolden Retriever5
2BellaLabrador4
3BaileyBeagle3
4MaxGerman Shepherd6
5MiloPug2
6BusterBulldog7
7CharlieSpaniel4

LIKE & Wildcards - Pattern Matching - SQL Practice Online

Practise LIKE & Wildcards - Pattern Matching with 10 interactive SQL exercises. You type real queries into your browser and get instant feedback on every answer - no database setup and no install. It is a fast, hands-on way to learn SQL online and build query skills you can use at work.