educative.io

The % symbol a wildcard that matches zero to all characters - strings


#1

How many characters does the % match in this value? “_riy%” when it returns the first name row for Priyanka Choprah …?


#2

It’s matching Priyanka Choprah based on the first 4 characters of Priy.

_riy% broken down means match all strings that start with any character + riy. Strings starting with Ariy, Briy, etc would all match.

Let me know if this helps!


#3

Yes! It helped, Adam 1. Thank you!