I need to write a query for searching a string (keyword) in a database.
When a user enters some text like 'Clothes' then the query should search for the 'Clothes' keyword in the whole database ProductName, ProductCode, SubCategoryName, etc
and also for near/similar text. So it should display all 'Clothes' related products, similar to Google search engine.
Also include spelling mistakes such as 'Clotts', ' Clooths' or 'Clothos' then it should display 'Clothes' related items.
If some clarification is needed, please leave a comment.
I'm using VS2010 C#, MySql 5.5 Database