I would like a search bar that would look at the input and give all possible solutions rather that only that are matching.
This is for a web-app that displays all item descriptions per SQL db table and matches any or all words . But, I should be able to put in couple of texts and it should display all letters that are matching , Wildcard so to speak
SELECT * FROM [table] WHERE ([name] LIKE '%' + @Name + '%')
I expect the output to give results for any text / strings / numbers matching and display all, but it is only giving certain results . Is there a wildcard that i can add so all matching can display?
Example :
Search Bar : John good
Expected O/P:
John is awesome, good and clever
John is good
John is not good
Actual O/P:
Nothing
Search Bar : John is
Expected O/P:
John is awesome, good and clever
John is good
John is not good
John is great
Actual O/P:
John is awesome, good and clever
John is good
John is not good
John is great