Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • why second conditions isnt WHERE title LIKE '%Test%Task%' first condtion already got the one where Task is first. So the remaining if also have both mean Test is first Commented Dec 1, 2017 at 13:58
  • Because the amount of words to search for can change (it can also be '%Test%Task%With%More%Words%', for example). Then I have to check for all possible orders, which has a big effect on the execution time. This approach should be much faster. Commented Dec 1, 2017 at 14:05