Answer to Question #246158 in Databases | SQL | Oracle | MS Access for Michael Sampson

Question #246158

How is the pattern matching done in the SQL?


1
Expert's answer
2021-10-03T17:14:45-0400

Pattern in SQL is done by using wildcard characters to match a pattern. 

For example the wildcard "M%" can be used to match any string beginning with M.


Example


SELECT *
FROM Students
WHERE surname LIKE '%K%'


The query above selects all details of student containing the letter K anywhere in the surname.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS