How would I match a name, such that one of the middle letters of the name must come from the word 'qwerty'(thus containing either of the letters 'q', 'w' , 'e', 'r', 't','y')?
I am curious how you can determine what the middle letters are, this would make use of some string count I assume.
What I have tried so far:
WHERE name LIKE '%(q|w|e|r|t|y)%'
Examples which would match:
Martens
Van Rossem
Frimout
Gates
Note: Middle letters in my exercise context means anything inbetween the first and last letter. I am still curious how one would match the 'median' letter of a string.
SIMILAR TO '%[qwerty]%'? Could you share examples?LIKEdoesn't support regular expressions. You needsimilar toor~if you want them.