I have created a student table and has the following records.
I want to perform search on the same table. I tried with the following query.
SELECT * FROM Students WHERE Name LIKE '%AM%'
It returns First two rows as resultset, which is correct.
I would like to perform the same query using the keyword CONTAINS, instead of LIKE.
I tried the below query, but its not returning any resultset.
SELECT * FROM Students WHERE CONTAINS(Name,'"AM"')
SELECT * FROM Students WHERE CONTAINS(Name,'"AM*"')
SELECT * FROM Students WHERE CONTAINS(Name,'"*AM*"')
Kindly help me to resolve this.
Thanks in advance.